Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

AutoCAD 2017 REVCLOUD command

PafecDOGS
Advocate

AutoCAD 2017 REVCLOUD command

PafecDOGS
Advocate
Advocate

Hi, I have an issue with our AutoCAD setup here at work ...

 

We created a stripped down CUI file a few years ago in AutoCAD 2015 (which we load in addition to the main default ACAD.CUI) which adds a tab with all our favourite commands on. We recently noticed some additions to the REVCLOUD command that were added in 2016 I think, with options to draw a rectangular or polyline revcloud. I wanted to add these to options to our existing rev cloud tools in our CUI file, and did so (the command line for the Rectangular option is shown in the screenshot attached).

 

The problem is if I use our newly created button, it doesn't work. Further investigation showed that when I used the button, the REVCLOUD command it executes doesn't have the extra options like R or P for Rectangle or Polyline, but if I type the REVCLOUD command in the command window, it does. It seems like our CUI file is running an older version of the command. Our main ACAD file always points to the default location as installed by AutoCAD, so I don't understand why the button seems to execute a diff command to what I type in the window!?

 

0 Me gusta
Responder
Soluciones aceptadas (1)
1.653 Vistas
11 Respuestas
Respuestas (11)

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> why the button seems to execute a diff command 

First we don't know what you script contains that you start before command _REVCLOUD

Then please start again your button command ... then use <F2> to show the textscreen and upload a screenshot from that textscreen.

 

In case your tools have redefined the command you might try to change your call to this syntax:

_.REVCLOUD

(including leading underscore and point)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Me gusta

PafecDOGS
Advocate
Advocate

Hi, sorry, the script is a layer command which creates a specific layer and attributes so things like rev clouds all go on the same layer, I have created multiples of these for controlling dimensions, text etc. The rev one contains the following

 

; -layer;m;Rev;c;181;;lw;0.09;;

; This script controls the Revison layer name/colour

; and is called up in the ribbon Revison buttons

;

layer

m

REV

c

181 

 

lw

0.09 

 

 

;

 

As for your other suggestion, it didn't work. I added it and have attached two F2 screenshots, one from the button, one from the command ...

 

0 Me gusta

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

strange ...

 

I would now:

 

Test 1: run the layer settings in the command button instead calling the script

Test 2: run a script, but different content (e.g. just draw a line from 0,0 to 1,1

Test 3: put the call _.REVCLOUD at the end of the script.

 

Also make sure you have installed the latest udpated for your AutoCAD (call command _ABOUT, should show "....2017.1.2")

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Me gusta

WarrenGeissler
Advisor
Advisor

This is really odd - if you use any of the NEW options in a macro or LISP (Command) call, then it defaults to the earlier command syntax- if you do not use any options, it goes with the newer syntax.


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

PafecDOGS
Advocate
Advocate

Yes, I was just going to post this! I created a spare button in the ribbon and just had it run the REVCLOUD command; on its own - fine, try to specify one of the new options (R or P etc) and it doesn't recognise it and you can see in the command window its using the older version ...!

 

I suppose now we should try a diff command which has extra options since 2015, and find out whether its a general glitch or just limited to the REVCLOUD command ...

0 Me gusta

WarrenGeissler
Advisor
Advisor
Solución aceptada

Check out the macro in the CUI:

^C^C_^Rrevcloud _R


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

PafecDOGS
Advocate
Advocate

Yes, changed the command syntax to what you found in the main CUI and it works. Bit odd but Thanks!

0 Me gusta

cschnarr
Enthusiast
Enthusiast

Thanks Warren for your insight. I was able to write a simple macro that allows me to specify a rectangular revcloud, specify the arc length, and then assign it a polyline global width. This is not as simple as I think AutoCAD could make this. But for others who might be searching this might give them some direction.

 

^C^C^C_^Rrevcloud _R;S;N;A;12;12;\\PEDIT;L;W;2;;

 

I can't tell you anything about the command you provided, but this is the only way I have been able to accomplish this via macro. Great help.

0 Me gusta

cadffm
Consultant
Consultant

@cschnarr

Hi, i am searching for years about a User who can tell me a command which have three option levels,

i mean a situation in this you need three ESC to cancel the whole command (the reason why you used three times ^C in macro)

 

Du YOU have a example for me?

 

International and force original commands example:

^C^C^R_.REVCLOUD;_r;_s;_n;_a;12;12;\\_.PEDIT;_L;_w;2;;

Sebastian

0 Me gusta

cschnarr
Enthusiast
Enthusiast

Great question. Most people don't bother to cover the third level cancel.

 

We ran into this 3 levels of options within the -LAYER command, PEDIT and SOLIDEDIT are a couple of other examples. The person who taught me code writing believed in covering all circumstances.

cadffm
Consultant
Consultant

.

@cschnarr

THANK YOU!

One possible situation is when option 'Save' - State is current in LAYER command.

Thanks again, Kudo4u

 

(-)LAYER example
_.-LAYER
_state
_save
<cancel from here>


Sebastian

0 Me gusta