Modified dimstyle

Modified dimstyle

Philip-John
Advocate Advocate
756 Views
1 Reply
Message 1 of 2

Modified dimstyle

Philip-John
Advocate
Advocate

I have a simple lisp to save the modified dimstyle (through properties window) as a new one.

 

;-----START-----

(defun c:SD ()
(command "AIDIMSTYLE" "S")
(princ)
)

;-----END------

 

Can anybody modify this or to:

After selection it should prompt for new dimstyle name showing the current dimstyle name plus a prefix or suffix as I set. See image below where "PH" is my suffix.
.. and there should be warning if dimstyle name is existing.

Untitled.png

0 Likes
757 Views
1 Reply
Reply (1)
Message 2 of 2

scot-65
Advisor
Advisor

Perhaps use this file to display the destination name?

 

EdiDia.FAS

Structure:

(setq a (EdiDia "Title" "Default Name"))

 

EdiDia.jpg

 

Return value is the exact contents of the edit box, including blank spaces,

if any, at each side of the string.

 

Tailored for your use:

(setq a (EdiDia "New Dimension Style" (strcat (getvar "DIMSTYLE") "-PH")))

 

EdiDia2.jpg

 

If there are more than one prefix/suffix it would seem that the

dialog should be expanded to include radio buttons of each

item plus one more radio button "Other" that is paired with

another edit box.

 

Or look into the undocumented function LISPED.

 

[FAS cannot be uploaded. Remove "-txt" from file extension]

 

???

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes