Revcloud function in Macro different result than command line.

Revcloud function in Macro different result than command line.

sepp6NPPB
Advocate Advocate
896 Views
10 Replies
Message 1 of 11

Revcloud function in Macro different result than command line.

sepp6NPPB
Advocate
Advocate

I've read a few posts about the new Revcloud function but none of them answer my question.

 

I have a macro that takes an existing rectangular polyline on a 'markup' layer and creates a revcloud using that object as the basis for the cloud. 

Effectivly:
Copy an object

change to the layer for the revcloud

run the revcloud command and select the previous object via the 'last' function

then return me to my markup layer.

 

Using Autocad 2021 and it works but the resulting revcloud is not the same as if I run the revcloud function manually.

In both cases, the object is reported by properties as a revcloud, but when I run it manually, the Arc Length parameter shows up and allows me to change the arc length. 

If I run the macro the arc length parameter is missing.

Here's the stripped down command:
^C^Crevcloud;;last;;
I have tested using last when manually running the command it does work correctly.

What am I missing?


Revcloud manually run:

sepp6NPPB_0-1617828451668.png

Revcloud run from macro:

sepp6NPPB_1-1617828471242.png

 

Thanks

Sepp

 

 

 

0 Likes
Accepted solutions (1)
897 Views
10 Replies
Replies (10)
Message 2 of 11

pendean
Community Legend
Community Legend
Test your code at the commandline yourself and fine the break/disconnect.

Or post your ENTIRE code here for review and comment: we can't tell from your snippet what the problem could be.
0 Likes
Message 3 of 11

sepp6NPPB
Advocate
Advocate

I don't need to post the entire code - what I listed is broken as well.
And my post says as much: 


@sepp6NPPB wrote:


I have tested using last when manually running the command it does work correctly.


Or did you check it and didn't find a problem?

 

And I'm not even sure how to check a SINGLE command with a handful of returns.....
It works as expected from the command line, but not in the macro.

 

Besides the fact that your post doesn't really make me feel good about posting here....

0 Likes
Message 4 of 11

pendean
Community Legend
Community Legend
If you don't feel comfortable posting here at Autodesk's Support Forums, then I can suggest you pay for support through one of these 3rd services found here https://servicesmarketplace.autodesk.com/
0 Likes
Message 5 of 11

sepp6NPPB
Advocate
Advocate

So you don't actually have any help to offer? Only comments that mislead?

0 Likes
Message 6 of 11

pendean
Community Legend
Community Legend
Forgive me but what misleading comments? We are all end users like you helping each other out, no one here is Autodesk. I don't know what your entire code does so I find it difficult to retrace your issue here.
0 Likes
Message 7 of 11

sepp6NPPB
Advocate
Advocate

Your first post insuates that I didn't provide enough information for anyone to help. Which is not true.
My original post states that I tested it manually and it doesn't produce the same results.

I clarified in my response that the code I posted produced the error, regardless of my larger macro code.

Were you able to reproduce the error using a simple revcloud command in a macro?

There is no more information to share or clarify.
I can't distill the command down any farther:

Revcloud; ; last ; ; 

in plain English: 
Revcloud / enter (Start Revcloud command)

enter (accepts "object" as the default options)

last / enter (selects the last object selected by the user, and complete the select function)
enter (accepts "no" as the default option)

I have additionally tested today, that using "object" and "no" in place of the default enter options produces the same difference in resulting revcloud geometry.
Today I also tested creating an action macro and it works as expected - producing a revcloud with the arc length attribute in properties.

I have submitted a formal support request as well.

0 Likes
Message 8 of 11

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try this line as a macro if it helps.

(progn (initcommandversion) (command "_.revcloud" "" "_last" "") (princ))

0 Likes
Message 9 of 11

pendean
Community Legend
Community Legend

As I may have noted before, your menu macro snippet works just fine here in R2021.1 and LT2021.1 so there is something else perhaps going on with a preset or ...?

 

pendean_0-1617900438440.png

 

0 Likes
Message 10 of 11

sepp6NPPB
Advocate
Advocate

That appears to fix it!
Took some rewriting for the original macro but finally back to normal.

 

Thanks.

0 Likes
Message 11 of 11

sepp6NPPB
Advocate
Advocate

@pendean 
I think you missed the entire problem.... but @ВeekeeCZ posted the answer that solved it.

0 Likes