AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programmatically reload styles

2 REPLIES 2
Reply
Message 1 of 3
BillDevlin
231 Views, 2 Replies

Programmatically reload styles

Is their a way to programmatically (in VBA) reload Layer key styles and Display reps from external drawings. I do not see a method to do this. I would hate to-have-to build a new style and generate every layer key in code.

Thanks
Bill Devlin
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: BillDevlin

I usually accomplish this by inserting a template
drawing with all of that stuff already defined. I have it linked to a custom
button I created.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Is
their a way to programmatically (in VBA) reload Layer key styles and Display
reps from external drawings. I do not see a method to do this. I would hate
to-have-to build a new style and generate every layer key in code.

Thanks
Bill Devlin

Message 3 of 3
Anonymous
in reply to: BillDevlin

Not sure about display reps or VBA but Rob showed me this one in lisp

(dictremove (namedobjdict) "AEC_LAYERKEY_STYLES")
(AecImportLayerKeyingStyle "MyLayerKey" "MaLayerKey.dwg")
(AecSetCurrentLayerKeying "MyLayerKey")

CJ


"Rafael Alvarez" wrote in message
news:EE650EBED63CBCBB9977A1FC8A863B2A@in.WebX.maYIadrTaRb...
> I usually accomplish this by inserting a template drawing with all of that
stuff already defined. I have it linked to a custom button I created.
> "BillDevlin" wrote in message
news:f06dd9b.-1@WebX.maYIadrTaRb...
> Is their a way to programmatically (in VBA) reload Layer key styles and
Display reps from external drawings. I do not see a method to do this. I
would hate to-have-to build a new style and generate every layer key in
code.
> Thanks
> Bill Devlin
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost