How to create your own CUI in AutoCAD

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 97

  • @iionas
    @iionas Год назад +1

    Thanks for this mate, absolute superstar. Civl Eng here also!

    • @CivilTechSource
      @CivilTechSource  Год назад

      You are welcome! Where are you based?

    • @iionas
      @iionas Год назад

      @@CivilTechSource Australia mate! How about you?

    • @CivilTechSource
      @CivilTechSource  Год назад

      Nice!!! Based in England. It would be nice to have a chat and see who they do things in different countries.

    • @iionas
      @iionas Год назад

      @@CivilTechSource alright! Do you have a discord of sorts or maybe email to not make all your stuff public?

    • @iionas
      @iionas Год назад +1

      @@CivilTechSource I found you on linked-in ill shoot you a mesage!

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +1

    Your video is very helpful for me
    Thanks a lot Jafar bhai

  • @kurramkhan613
    @kurramkhan613 2 года назад +2

    I want to create new layer but it should not be set as a current layer
    Please help me

    • @kurramkhan613
      @kurramkhan613 2 года назад

      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

    • @kurramkhan613
      @kurramkhan613 2 года назад

      Please advise what should I do for not to set current layer

    • @CivilTechSource
      @CivilTechSource  2 года назад +1

      How about trying to add a macro to set the current layer to layer 0?

    • @kurramkhan613
      @kurramkhan613 2 года назад

      @@CivilTechSource ok
      Could you please help me

    • @kurramkhan613
      @kurramkhan613 2 года назад

      @@CivilTechSource this thing is new for me

  • @akulsingh7217
    @akulsingh7217 2 года назад +1

    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

    • @CivilTechSource
      @CivilTechSource  2 года назад

      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

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +1

    I have a question
    Is it possible providing shortcut key that block we made
    For eg: CO for copy

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      Thanks in advance brother

    • @CivilTechSource
      @CivilTechSource  2 года назад

      Hi, for autocad LT no reply. For full autocad if you create a lisp then yeah.

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource Yes I have full version AutoCAD

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource Could you please help me

    • @CivilTechSource
      @CivilTechSource  2 года назад

      forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-lisp/m-p/6322777/highlight/true#

  • @davorinpotocnik5599
    @davorinpotocnik5599 3 года назад +1

    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!

    • @CivilTechSource
      @CivilTechSource  3 года назад +1

      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!

    • @davorinpotocnik5599
      @davorinpotocnik5599 3 года назад +1

      @@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

    • @davorinpotocnik5599
      @davorinpotocnik5599 3 года назад

      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
      @CivilTechSource  3 года назад

      This will be dependent on what the actual lisp command does. It might needs altering in the code line. What does that lisp do?

    • @davorinpotocnik5599
      @davorinpotocnik5599 3 года назад

      @@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".

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +2

    LISP to explode block and make block again with the same name, Can I get this LISP
    Please

    • @CivilTechSource
      @CivilTechSource  2 года назад

      Just block the block again so you can use the explode command and then you will be left with the original block.

  • @kaackster
    @kaackster 2 года назад +1

    is the CUI available for purchase? If so, where can I find it.

    • @CivilTechSource
      @CivilTechSource  2 года назад

      Hi Kaackster, a drainage CUI is available now in the Civiltechsource website. civiltechsource.com/index.php/shop/ more CUI will be available soon!

  • @JS-so8lu
    @JS-so8lu 3 года назад +1

    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

    • @CivilTechSource
      @CivilTechSource  3 года назад

      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.

    • @JS-so8lu
      @JS-so8lu 3 года назад +1

      @@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?

    • @CivilTechSource
      @CivilTechSource  3 года назад

      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 😅

  • @orhunpolat5805
    @orhunpolat5805 10 месяцев назад +1

    How can I create a panel like hatch pattern panel?

    • @CivilTechSource
      @CivilTechSource  4 месяца назад

      Have not done this yet, but probably I would copy paste it from the current AutoCAD CUI

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +1

    Is it possible to create shortcut command for insert block

    • @CivilTechSource
      @CivilTechSource  2 года назад +1

      Yes, using lisp.

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource I have used this lisp
      (defun c:COM () (command "insert" "Comp"))

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource but the results of both block are different for e.g. block name is different, layer changed automatically

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource i have created block in my c drive and insert that block using through CUIX but i want shortcut command too

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource for shortcut command I used below command
      (defun c:COM () (command "insert" "Comp"))

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +1

    Jafar bhai could you make a detail video, how to insert block in CUI autocad

    • @CivilTechSource
      @CivilTechSource  2 года назад +1

      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.

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад +1

      @@CivilTechSource thanks Jaffar bhai
      I got it thanks again

  • @patrice373
    @patrice373 3 года назад +1

    High level, well explained

  • @Seltos-Jagat
    @Seltos-Jagat 3 года назад

    Great Job Bro, But I want to ask a question, It Can be possible to convert any item block into a Single Command.?

    • @CivilTechSource
      @CivilTechSource  3 года назад

      Thank you, do you mean inserting a block using a command line on the keyboard?

    • @Seltos-Jagat
      @Seltos-Jagat 3 года назад +1

      @@CivilTechSource Right. Is it possible?

    • @CivilTechSource
      @CivilTechSource  3 года назад

      Yes, I know it possible in autocad full version.

    • @Seltos-Jagat
      @Seltos-Jagat 3 года назад +1

      @@CivilTechSource Ok could you do this for me ? For It I am ready to pay you.

    • @CivilTechSource
      @CivilTechSource  3 года назад

      Hi Jagat, for any enquries please email me at ferdijafar.engineering@gmail.com to discuss further.

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +2

    Hello Jafar
    Could you please provide
    Macro for channel and general notes
    Please one last time help me
    Please

    • @CivilTechSource
      @CivilTechSource  2 года назад

      Hi Ibrahim, i use the same one as I posted below.

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад +1

      @@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

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад +1

      @@CivilTechSource thanks brother

    • @CivilTechSource
      @CivilTechSource  2 года назад

      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.

  • @ibrahimpatel9006
    @ibrahimpatel9006 2 года назад +1

    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

    • @CivilTechSource
      @CivilTechSource  2 года назад

      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.

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@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.

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад

      @@CivilTechSource shall I send the email on your email id

    • @ibrahimpatel9006
      @ibrahimpatel9006 2 года назад +1

      @@CivilTechSource could you please help me in Option A
      I will send my lisp on your email ID

  • @dirtymind6553
    @dirtymind6553 2 года назад +1

    man thank you

  • @kishorvaidya8526
    @kishorvaidya8526 3 года назад +1

    Thanks

  • @herialsua7982
    @herialsua7982 Год назад

    .

  • @Cameron-kk4kh
    @Cameron-kk4kh 2 года назад +1

    Thanks