I tried it's creating a new layer and also automatically set current layer I don't want that layer set as current layer ^C^C_.-LAYER_M TXT_C Red_LW 0.18; _L Continuous Please look at this
Hi mate I have a question, I create toolbar for commands like, move, copy, rotate, extend. But how to create Scale viewports toolbar which include commands like, 1:100, 1:150, 1:250, 1:500, 1:1000, so that just with one click I can change the scale. Please answer my question ASAP. THANKS
The easiest way, without creating any custom command is to set up your dwg tempalte to have the scales already in and then when you create a viewport you can select what scale you want from the defined scales. Hope this helps
Very nice. Could you help me with this: I have a lot of lisp file and I want to make cui file which will put together all of these lips and icons for all of that lips will be shown in toolbar. And the same time the question is how to draw icons for lisp? Can I draw in autocad like dwg and then change to .bmp format (picture)? So, all lisp want to use by using toolbar palet. Thanks!
Hi Davorin, the first question is, does your AutoCAD loads up the CUI automatically once you start AutoCAD? Or do you manually start them? If so, the maybe you can find a way to use Appload command by creating a new CUI button. Now, in regards to creating the icons for it, you can draw them in AutoCAD and save them as BMP but you can also draw your own icons using the CUI command and you will see it on the right hand side. I have not personally explored this, but it is a very good idea for a next video! If this is not helpful then I found this link and might help you start solving your problem slowly. knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/Automatically-load-AutoLISP-routines.html Thanks for the support!
@@CivilTechSource hi. Thanks for your answer. Your video helped me to made cui file. Also helped me to drow my own commands for all lisps - I used icons on the right hand side. It's training version for now; so, I have cui file, icons in toolbar, all lips are loaded, but don't work as they should be work. I will try to fix that; if i will have some questions, I'll write to you. Best regards
Hi, I made toolbar with lisps. I have 5 lisps (for now); 4 of them works perfect. In near future I only must to make better icons. Only one lisp make me trouble. When I click on icon for that lisp, there is a message: "Cannot invoke (command) from *error* without prior call to (*push-error-using-command*). Converting (command) calls to (command-s) is recommended." Do you know what's the problem? BR
@@CivilTechSource I tried this lisp to use on my office computer and it's work ok; in office I don't have ciu file and toolbars; only grap lisp and drop in autocad; so lisp is ok - maybe I made some mistake. Lisp is "Centerline between two polyline".
Hi, do you have anywhere we can download the button images you use on your CUI? Or can you please let me know the best way to design these if they are not available for my personal use? JS
Hi JS, actually I am in the process of putting together the whole CUI for sale. So if you have time to wait theb great if not, I manually draw all the button images.. not the most fun thing to do on a Monday night.
You could use photoshop! I tried but got tired exporting and importing so draw them in autocad. The cui will be very affordable around £20. I am not a greedy corporation 😅
Hi Ibrahim, thanks for your comment. Unfortunately, I will not be making a video specific for the block in CUI as it is not a priority. However, obviously want to help you so see Macro command: *^C^C-insert;(Type Dwg name here);\;;;explode;last;-purge;Blocks;(Type Dwg name here);N; Please make sure that the file path where the Dwg is saved has been added to your support file path search in your settings. Hope this helps.
Hi Ibrahim, the channel stretch is a dynamic block. You can see examples online how to create this. Or you can pur have my drainage cui from my website which comes with all the drainage blocks.
I have created block and that block I have use as a insert block. For insert block I prefer CUIX.File and VLSIP. Through CUIX I have set symbol in Autocad ribbon and the same block used through LISP for shortcut command. When I used through CUIX I got correct block layer properties. I mean I have created in "xyz" layer. Using through CUIX I got the same layer in my new drawing. If even my current layer is 0 but they still put "xyz" layer in my new drawing. This is correct for me. When I use LISP shortcut command for the same insert block. If my current layer is "ABCD" then block properties has changed automatically. The layer of blocks has changed into current layer. I don't want inserted block in current layer, I want inserted block should keep their own properties
The insert block command will always tend to insert the block in the current layer. Therefore, you have two options: A) In the Lisp add a command to add the layer that you want and set it as current. or B) Create a new Block with the Block inside of it and add a command to explode the block. This way the dummy block will come on Layer 0 and exploded that would be gone and the original block should have the layer that it was set on.
Thanks for this mate, absolute superstar. Civl Eng here also!
You are welcome! Where are you based?
@@CivilTechSource Australia mate! How about you?
Nice!!! Based in England. It would be nice to have a chat and see who they do things in different countries.
@@CivilTechSource alright! Do you have a discord of sorts or maybe email to not make all your stuff public?
@@CivilTechSource I found you on linked-in ill shoot you a mesage!
Your video is very helpful for me
Thanks a lot Jafar bhai
Thanks and welcome
I want to create new layer but it should not be set as a current layer
Please help me
I tried it's creating a new layer and also automatically set current layer
I don't want that layer set as current layer
^C^C_.-LAYER_M TXT_C Red_LW 0.18; _L Continuous
Please look at this
Please advise what should I do for not to set current layer
How about trying to add a macro to set the current layer to layer 0?
@@CivilTechSource ok
Could you please help me
@@CivilTechSource this thing is new for me
Hi mate I have a question, I create toolbar for commands like, move, copy, rotate, extend. But how to create Scale viewports toolbar which include commands like, 1:100, 1:150, 1:250, 1:500, 1:1000, so that just with one click I can change the scale. Please answer my question ASAP. THANKS
The easiest way, without creating any custom command is to set up your dwg tempalte to have the scales already in and then when you create a viewport you can select what scale you want from the defined scales. Hope this helps
I have a question
Is it possible providing shortcut key that block we made
For eg: CO for copy
Thanks in advance brother
Hi, for autocad LT no reply. For full autocad if you create a lisp then yeah.
@@CivilTechSource Yes I have full version AutoCAD
@@CivilTechSource Could you please help me
forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-lisp/m-p/6322777/highlight/true#
Very nice. Could you help me with this: I have a lot of lisp file and I want to make cui file which will put together all of these lips and icons for all of that lips will be shown in toolbar. And the same time the question is how to draw icons for lisp? Can I draw in autocad like dwg and then change to .bmp format (picture)? So, all lisp want to use by using toolbar palet. Thanks!
Hi Davorin, the first question is, does your AutoCAD loads up the CUI automatically once you start AutoCAD? Or do you manually start them? If so, the maybe you can find a way to use Appload command by creating a new CUI button. Now, in regards to creating the icons for it, you can draw them in AutoCAD and save them as BMP but you can also draw your own icons using the CUI command and you will see it on the right hand side. I have not personally explored this, but it is a very good idea for a next video!
If this is not helpful then I found this link and might help you start solving your problem slowly. knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/Automatically-load-AutoLISP-routines.html
Thanks for the support!
@@CivilTechSource hi. Thanks for your answer. Your video helped me to made cui file. Also helped me to drow my own commands for all lisps - I used icons on the right hand side. It's training version for now; so, I have cui file, icons in toolbar, all lips are loaded, but don't work as they should be work. I will try to fix that; if i will have some questions, I'll write to you. Best regards
Hi, I made toolbar with lisps. I have 5 lisps (for now); 4 of them works perfect. In near future I only must to make better icons. Only one lisp make me trouble. When I click on icon for that lisp, there is a message: "Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended." Do you know what's the problem? BR
This will be dependent on what the actual lisp command does. It might needs altering in the code line. What does that lisp do?
@@CivilTechSource I tried this lisp to use on my office computer and it's work ok; in office I don't have ciu file and toolbars; only grap lisp and drop in autocad; so lisp is ok - maybe I made some mistake. Lisp is "Centerline between two polyline".
LISP to explode block and make block again with the same name, Can I get this LISP
Please
Just block the block again so you can use the explode command and then you will be left with the original block.
is the CUI available for purchase? If so, where can I find it.
Hi Kaackster, a drainage CUI is available now in the Civiltechsource website. civiltechsource.com/index.php/shop/ more CUI will be available soon!
Hi, do you have anywhere we can download the button images you use on your CUI? Or can you please let me know the best way to design these if they are not available for my personal use?
JS
Hi JS, actually I am in the process of putting together the whole CUI for sale. So if you have time to wait theb great if not, I manually draw all the button images.. not the most fun thing to do on a Monday night.
@@CivilTechSource Unfortunately as I am a poor uni student I won't be buying however do you use photoshop to draw them out and then just load them in?
You could use photoshop! I tried but got tired exporting and importing so draw them in autocad. The cui will be very affordable around £20. I am not a greedy corporation 😅
How can I create a panel like hatch pattern panel?
Have not done this yet, but probably I would copy paste it from the current AutoCAD CUI
Is it possible to create shortcut command for insert block
Yes, using lisp.
@@CivilTechSource I have used this lisp
(defun c:COM () (command "insert" "Comp"))
@@CivilTechSource but the results of both block are different for e.g. block name is different, layer changed automatically
@@CivilTechSource i have created block in my c drive and insert that block using through CUIX but i want shortcut command too
@@CivilTechSource for shortcut command I used below command
(defun c:COM () (command "insert" "Comp"))
Jafar bhai could you make a detail video, how to insert block in CUI autocad
Hi Ibrahim, thanks for your comment. Unfortunately, I will not be making a video specific for the block in CUI as it is not a priority. However, obviously want to help you so see Macro command: *^C^C-insert;(Type Dwg name here);\;;;explode;last;-purge;Blocks;(Type Dwg name here);N; Please make sure that the file path where the Dwg is saved has been added to your support file path search in your settings. Hope this helps.
@@CivilTechSource thanks Jaffar bhai
I got it thanks again
High level, well explained
Thanks!
Great Job Bro, But I want to ask a question, It Can be possible to convert any item block into a Single Command.?
Thank you, do you mean inserting a block using a command line on the keyboard?
@@CivilTechSource Right. Is it possible?
Yes, I know it possible in autocad full version.
@@CivilTechSource Ok could you do this for me ? For It I am ready to pay you.
Hi Jagat, for any enquries please email me at ferdijafar.engineering@gmail.com to discuss further.
Hello Jafar
Could you please provide
Macro for channel and general notes
Please one last time help me
Please
Hi Ibrahim, i use the same one as I posted below.
@@CivilTechSource ok
What about channel strech or extend macro
I' m not use code before
If you write macro here
It will beneficial for me
@@CivilTechSource thanks brother
Hi Ibrahim, the channel stretch is a dynamic block. You can see examples online how to create this. Or you can pur have my drainage cui from my website which comes with all the drainage blocks.
I have created block and that block I have use as a insert block. For insert block I prefer CUIX.File and VLSIP.
Through CUIX I have set symbol in Autocad ribbon and the same block used through LISP for shortcut command.
When I used through CUIX I got correct block layer properties. I mean I have created in "xyz" layer. Using through CUIX I got the same layer in my new drawing. If even my current layer is 0 but they still put "xyz" layer in my new drawing. This is correct for me.
When I use LISP shortcut command for the same insert block. If my current layer is "ABCD" then block properties has changed automatically. The layer of blocks has changed into current layer. I don't want inserted block in current layer, I want inserted block should keep their own properties
The insert block command will always tend to insert the block in the current layer. Therefore, you have two options: A) In the Lisp add a command to add the layer that you want and set it as current. or B) Create a new Block with the Block inside of it and add a command to explode the block. This way the dummy block will come on Layer 0 and exploded that would be gone and the original block should have the layer that it was set on.
@@CivilTechSource I have already pasted LISP and CUIX macro. But that comments not shown in this section.
Shall I send LISP and CUIX on your email.
@@CivilTechSource shall I send the email on your email id
@@CivilTechSource could you please help me in Option A
I will send my lisp on your email ID
man thank you
No worries!
Thanks
You are welcome!
.
.
Thanks
Welcome