2022 Revcloud Arc Length Pre-set

2022 Revcloud Arc Length Pre-set

fkellogg
Advocate Advocate
2,358 Views
11 Replies
Message 1 of 12

2022 Revcloud Arc Length Pre-set

fkellogg
Advocate
Advocate

Does anyone out there have a way to pre-set the revcloud arc length in AutoCAD 2022?

 

I recently upgraded to 2022, and almost immediately noticed the changed revcloud features.

I have no problem with the single Arc Length setting. I rather like having the program set a reasonable variation, to appear as if I drew it by hand. Better to only need to set one value.


I dislike that the first time I make a revcloud in a new drawing, or one from a previous version, the arc length is relative to some factor of the current view. So far at my company, no-one else has upgraded to 2022.


I have found that one can set the preferred arc length by "faking it" and esc'ing out of the command. Search help for "To Change the Default Value for Arc Lengths in a Revision Cloud" to see what I mean. One can also go ahead and make the revcloud and change its arc length to the desired value, and then erase it. The re-set value applies to the next revcloud drawn!


What I would like to do is make my acaddoc.lsp file perform the "faking it" maneuver upon drawing startup. I tried various bits of code, without success.

"command: revcloud A .375 ^c"    or some such.


I also tried tweaking the Command string "^C^C_revcloud" of the tool on my palette, without success there either. (I use a "revcloud" tool on a palette, so the layer is set to one that prints in true color (200,0,200) in pdf).


With both ventures, the first revcloud arc length was not set to my preferred 3/8" value.

I also prefer "calligraphy" style, and to click out a simple rectangle, or pre-draw a different polyline shape to convert, rather than do one freehand.

 

Thanks in advance!

C. Frank Kellogg

0 Likes
Accepted solutions (2)
2,359 Views
11 Replies
Replies (11)
Message 2 of 12

ВeekeeCZ
Consultant
Consultant

See help HERE 

0 Likes
Message 3 of 12

fkellogg
Advocate
Advocate

I consulted ALL of the Help topics on this.

I fully understand the new Revcloud features.

Except why there is some seemingly random method for calculating the first revcloudarc length.

Looking for simple code to preset this on startup, or every time, through a toolpalette tool.

 

Thanks for the reply.

CFK

0 Likes
Message 4 of 12

ВeekeeCZ
Consultant
Consultant

So now knowing all the facts, what is it you want to preset?

0 Likes
Message 5 of 12

Kent1Cooper
Consultant
Consultant

@fkellogg wrote:

....

What I would like to do is make my acaddoc.lsp file perform the "faking it" maneuver upon drawing startup. I tried various bits of code, without success.

"command: revcloud A .375 ^c"    or some such.

 

....

In acaddoc.lsp you need to use AutoLisp code.  Your trial is more like [but not quite] command-macro format.  Try this:

 

(command "_.revcloud" "_arc" 0.375) (command)

 

The (command) function with no arguments cancels most commands.  I'm not up to 2022 yet, but it seems to work if I add an Enter "" for the second arc-length designation, so I hope it works for you if a single designation is now the way.

Kent Cooper, AIA
0 Likes
Message 6 of 12

fkellogg
Advocate
Advocate

Kent;

Thank you for reading and understanding my whole post.
I plugged your code into my acaddoc.lsp file exactly as shown.
I also have a line thus:

;RevCloud to Rectangular setting
(Command "REVCLOUDCREATEMODE" "1")

I started a new file (with another still open).

This is what showed up in my command line upon loadup:

REVCLOUDCREATEMODE 1 _.revcloud
Minimum arc length: 0.2500 Maximum arc length: 0.5000 Style: Calligraphy Type: Freehand_arc 0.375

Looks good so far.

When I try a new revcloud in the new file I get this:

Command: RC
REVCLOUD
Minimum arc length: 2.2925 Maximum arc length: 4.5849 Style: Calligraphy Type: Rectangular
Specify first corner point or [Arc length/Object/Rectangular/Polygonal/Freehand/Style/Modify] <Object>: *Cancel*

So, basically, that did not work.

The seemingly random values for arc length are somehow generated based on the current zoom level.

I started another new file and zoomed out. I got this:

Minimum arc length: 93.6620 Maximum arc length: 187.3240

 

You really must experience the new revcloud features in v2022 to fully understand what is going on.

Revcloud behavior has changed A LOT.

 

Thanks

0 Likes
Message 7 of 12

ВeekeeCZ
Consultant
Consultant
Accepted solution

Ok, I'll give it a try even I don't really understand your issue. Here's your acaddoc line.

 

(setvar 'revcloudapproxarclen 0.375)

 

Message 8 of 12

pendean
Community Legend
Community Legend
FWIW the REVCLOUDCREATEMODE variable is ignored/overwritten if you click on a REVCLOUD button for one of the other presets in the Ribbon: perhaps that is your underlying issue?

You might be better off simply asking for what all you want all the time in your LISP or Macro or Script instead. Example:
^C^C_REVCLOUD;_R;_A;0.375

HTH
0 Likes
Message 9 of 12

fkellogg
Advocate
Advocate

@ВeekeeCZ 

That worked!

Added this to my acaddoc.lsp:

;RevCloud to Rectangular setting
(Command "REVCLOUDCREATEMODE" "1")
;
;Set Revcloud arc length to 3/8"
(setvar 'revcloudapproxarclen 0.375)

;

And this is the command line using keyboard alias "rc":

Command: RC
REVCLOUD
Minimum arc length: 0.2500 Maximum arc length: 0.5000 Style: Calligraphy Type: Rectangular
Specify first corner point or [Arc length/Object/Rectangular/Polygonal/Freehand/Style/Modify] <Object>:

 

I had tried many iterations of the command line versions, without success.

Overlooked the setvar option. I am a code lurker, not a code scientist.

 

Many tanks!!

0 Likes
Message 10 of 12

ВeekeeCZ
Consultant
Consultant

Most sysvars have their command version too. Although, in lisps should be preferred direct sysvar setting over usage of commands.

 

(command "revcloudapproxarclen" 0.375)

also (setvar "REVCLOUDCREATEMODE" 1)

0 Likes
Message 11 of 12

fkellogg
Advocate
Advocate

Thanks again.

Just curious as a code lurker, what do the "_." and "_" preceding the commands in the examples you suggested do?

I mainly use lisp in my acaddoc.lsp to combine commands like this:

(defun C:c16 ( ) (command "chamfer" "distance" ".0625" ".0625" )

and (command "filedia" "1")

I recently deleted a lot of more complex routines from acaddoc, and my system has not had the problems I was having - "No selection" issue, and Copy command hard crash.

 

I am not familiar with command macros.

CFK

0 Likes
Message 12 of 12

Kent1Cooper
Consultant
Consultant
Accepted solution

@fkellogg wrote:

.... what do the "_." and "_" preceding the commands in the examples you suggested do? ....


The underscore makes English command and option names work in AutoCAD for any language.  The period/decimal forces the use of the native AutoCAD command, in case it has been Undefined [and typically a customized version defined under the same name].

Kent Cooper, AIA