Some code to help in doing my demos. It goes into the Tool Palette as commands and then I can press the command in the Tool Palette to run the command.
This does a Save As file:
^C^C(vla-saveas (vla-get-ActiveDocument (vlax-get-Acad-Object)) "C:/Civil 3D Projects/DFWBIUG_Test_A/Sewer/Phase 2/A_Phase1_Sewer_B_Street_Start.dwg");
Note:
- The backslashes in the drawing path are forward slashes.
- The ^C^C clears the command line.
This opens a file:
^C^C(LM:open "C:/Civil 3D Projects/DFWBIUG_Test_C/SampleCreateDS.dwg");
The tool palettes also work as an agenda so I can remind myself what I'm doing next.
The LM:open is modified from Lee Mac: http://lee-mac.com/open.html with totally different code.
No comments:
Post a Comment