Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connot use $ sign in MENU text

2 REPLIES 2
Reply
Message 1 of 3
BIMologist_
125 Views, 2 Replies

Connot use $ sign in MENU text

I have a lisp function which I need to PASS a $ sign in the text, could not figure out how to do it as $ is a menu special char.
^C^C(nm_hatchplines "SOLID" "OFC$HL" "OFC$" 32)
It bombs due to $ sign, I can always wrap it in a command as below and then call the command from the menu, but it makes it non dynamic and when they have to add a new set of HATCHING I get a call for. I cannot get rid of $ sign since ARCHIBUS loves them to the heart , so have to have them there/.
thanks



(defun C:HATCHOFC ( / HatchPattern HatchLayer PlineLayer HatchLayerColor )
;setup the variables here
(setq
HatchPattern "SOLID"
HatchLayer "OFC$HL"
PlineLayer "OFC$"
HatchLayerColor 32
)
(nm_hatchplines HatchPattern HatchLayer PlineLayer HatchLayerColor)
(nm_hatchplines "SOLID" "OFC$HL" "OFC$" 32)
)


BIMologist / Dr. Revit
Approved Autodesk Services Marketplace provider - BIM Consulting

EESignature


If you find this reply helpful, please use the Accept Solution or Like button below
2 REPLIES 2
Message 2 of 3
Ian_Bryant
in reply to: BIMologist_

Hi,
Try
^C^C(nm_hatchplines "SOLID" (strcat "OFC" (chr 36) "HL") (strcat "OFC" (chr 36)) 32)

Regards Ian
Message 3 of 3
BIMologist_
in reply to: BIMologist_

Works like a CHARM
thanks


BIMologist / Dr. Revit
Approved Autodesk Services Marketplace provider - BIM Consulting

EESignature


If you find this reply helpful, please use the Accept Solution or Like button below

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost