How to change an existing Leader's Dim Scale Overall (Fit) with AutoLISP

How to change an existing Leader's Dim Scale Overall (Fit) with AutoLISP

Anonymous
Not applicable
1,522 Views
2 Replies
Message 1 of 3

How to change an existing Leader's Dim Scale Overall (Fit) with AutoLISP

Anonymous
Not applicable

Hi everyone!

 

I've worked hard on a .LSP script to automatically modify an exported AutoCAD DWG from Inventor. To make it simple, the modifications make the exported DWG complying to our client drawing standards (ie. border + texts on PaperSpace, the rest on ModelSpace).

 

For now everything works fine except one thing, all the non-Annotative leaders' Dim Scale Overall properties are 1 and I need to make them to a specific value (Inventor's Base View Scale when exporting everything to ModelSpace)

 

I just can't find a way to do this with a command.

 

I've already tried changing the DIMSACLE value, it's not working with dimensions that are already placed. I've also tried the _-CH _P command but it only allow's to change the General Properties, not the rest.

 

The code i'm planning to use is :

(setq UsrQA2 (getvar "QAFLAGS"))
	(setvar "QAFLAGS" 1)
	(command "???" "PARAM" (ssget "_X" '((0 . "LEADER"))) "" )
	(setvar "QAFLAGS" UsrQA2)
	(princ)

Thanks for your help!

0 Likes
Accepted solutions (1)
1,523 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant
Accepted solution

(command "_.dimoverride" "DIMSCALE" YourValue "" (ssget "_X" '((0 . "LEADER"))) "")

Kent Cooper, AIA
Message 3 of 3

Anonymous
Not applicable

Wow thanks, didn't know that one!

0 Likes