Anuncios

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

Edit Sub-Dimstyles from Commandline

BrianHailey
Mentor

Edit Sub-Dimstyles from Commandline

BrianHailey
Mentor
Mentor

I'm trying to edit some dimensions styles from the command line (want to put it in a script) but I'm struggling with it. I've figured out how to use the -dimstyle command to set the desired dimstyle current, use the variables to change what I need, and then to save it again but, that only works for the parent dimstyle. I need to edit the sub-dimstyles as well. I'm not exactly sure what they are called but their listed under the main dimstyle and allow you to alter the dimstyle for things like radius, angles, linear, etc. Any idea on how to edit these from the command line?

 

BrianHailey_0-1634240412124.png

 

 

Thanks!

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Me gusta
Responder
Soluciones aceptadas (1)
648 Vistas
8 Respuestas
Respuestas (8)

pendean
Community Legend
Community Legend

Select one of those then select the MODIFY button not an option? works here, but I'm not using C3D (this is the wrong forum for you variant).

0 Me gusta

BrianHailey
Mentor
Mentor

I'm not sure how to select the modify button from the command line.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Me gusta

pendean
Community Legend
Community Legend
You don't unless you want to use the TAB key: may I ask why you need to do it that way?
Are you trying to right code (macro or script or...) to automate a specific task? Your method is not the way to do that if yes. Explain your intent/final need/result when you get a chance.
0 Me gusta

BrianHailey
Mentor
Mentor

BrianHailey_0-1634241357133.png

 

I have several drawings that need to have the dimstyles changed.

 

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Me gusta

pendean
Community Legend
Community Legend
Ha! no, you missed it: what exactly are you trying to edit? What do you want to edit? You cannot "script" a pop-up: basic 101 AutoCAD coding limitation.

Are you stuck trying to help users in the LT version of AutoCAD? If not, full AutoCAD (and C3D) can do way more, the better forums for posting/asking for help coding what you need are here https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1

0 Me gusta

BrianHailey
Mentor
Mentor

I'm trying to edit the dimension style, specifically the arrow heads, from the command line so I can put it in a script so I can edit several hundred drawings at once. I know how to create the script and apply it to the drawings, I just don't know if there's a command line option to change the sub-dimension styles. If there's not, I'll look elsewhere on how to do this but editing at the command line isn't a customization thing, it's core AutoCAD.

So, back to my original question, is there a way to edit the sub-dimension style at the command line?

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Me gusta

ВeekeeCZ
Consultant
Consultant
Solución aceptada

Under -dimstyle use the <select dimension> option which gives you a hint.

Syntax is dimname$n

...eg for Radial n is 4

BrianHailey
Mentor
Mentor

That's exactly the pointer in the right directly I needed! Thank you so much! I knew there had to be a way to do it.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Me gusta