Control alternative units placement from command line?

Control alternative units placement from command line?

james.levieux
Advocate Advocate
751 Views
9 Replies
Message 1 of 10

Control alternative units placement from command line?

james.levieux
Advocate
Advocate

Hi All,

 

I want to control the placement of alternative units with a script but I can't seem to find a command for it.  Is there one?

 

James

jameslevieux_0-1648074611687.png

 

0 Likes
Accepted solutions (1)
752 Views
9 Replies
Replies (9)
Message 2 of 10

Sea-Haven
Mentor
Mentor

This may be helpful shows the variable names.

 

 

0 Likes
Message 3 of 10

james.levieux
Advocate
Advocate

Interesting GIF.  It was too fast for me to read but I'm pretty sure I've looked at all of those and none of them seem to be applicable.  What program was that anyway?  Is it a feature built into AutoCAD or an addin?

 

j

0 Likes
Message 4 of 10

Sea-Haven
Mentor
Mentor

There are numerous free screen recorders that was Screentogif. 

 

try (entget (car (entsel "\nPick dim")))

then change the dim style 1 option at a time and draw a new dim look at the dxf numbers you will see a change. 

 

A hint for notepad++ replace )   ( with )\r( this will turn the copied long entget into a column answer.

0 Likes
Message 5 of 10

ВeekeeCZ
Consultant
Consultant
Accepted solution

If the bellow option is on, it just ADDs a paragraph mark to your current primary units suffix.

So if you currently don't use that, it's simple

DIMPOST \X

else....... you need to concatenate them.

0 Likes
Message 6 of 10

james.levieux
Advocate
Advocate

Thank you.

 

Hey Autodesk, all you need is a simple 1 or 0 dimvar for this....like you have for everything else!

 

0 Likes
Message 7 of 10

james.levieux
Advocate
Advocate

just wondering,

 

Does anyone know a way to force Autocad to use one setting or the other without programming?  I always get side by side by default.

0 Likes
Message 8 of 10

ВeekeeCZ
Consultant
Consultant

Don't understand your question. That sysvar is driven by a dim style setting in the first place. Besides that, it's just a system variable that can be changed manually.

0 Likes
Message 9 of 10

james.levieux
Advocate
Advocate

OK.  Let me put that another way.  Instead of using the dialog, what are the command line settings to achieve an "over/under" alternative units format?

0 Likes
Message 10 of 10

ВeekeeCZ
Consultant
Consultant

DIMPOST

\X

0 Likes