AutoCAD 2010/2011/2012 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is there a way to have spaces in a command and the command still follow through without assuming "enter" wa **** when a space is received while entering info through a cui file?
Heres my issue: In my CUI file i have a macro that refers to a layer to be set current, the layer has a space in it (e-special systems). When this button is pressed, i get an error on the command bar saying "cannot find layer "e-special" The reason, is because there is none. I typed the underscore ( _ ) charachter to try to use that as the space, but it looked at it as being in the layer name. provided is two screen shots. Would i just have to take the space out of the layer name?
Solved! Go to Solution.
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
apparantly when i typed "was hit" i spaced before the 's' and it made a word that offends some people somehow. hope that doesnt confuse anyone.
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Many years ago a Layer Name can not have a space in between so Macro would work fine.
http://www.cadtutor.net/tutorials/autocad/object-p
Later on Layer name can be long and spaces can be used, macro stuck on first gear.
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I know that i can now. Sooooo, is there a way to represent a space in a macro or do i need to take out the space in my layer names?
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
It's a 30-mile long marathon to make a button macro to set a layer current with layer name have bunch of spaces, I made it before but NEVER use it because it's faster with LAYCUR command.
Make a lisp to set that layer current and then add this lisp to Startup Suite.
CUI, in the Macro, put in the command of this lisp, it will work.
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
That adds a command that i was omitting by using this method. In the past if something was on the wrong layer, i simply just selected it and used the pulldown from the toobar to change it. I'll just change my layer name and macro to have no space.
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You gave up too easily. Just put quotes around your layer name.
Re: CUIs and Spaces
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
yea i know. Thanks for the help, this worked.
