MartinD81 Posted November 15, 2012 Posted November 15, 2012 We have a set of toolbars and menus that contain viewing panes for multiple details/symbols etc, controlled by slides (*.sld files), I gather. I have located the .sld files but cannot figure out how the viewing pane is constructed, how it writes the headings etc. Is there a seperate file that governs this (text file maybe), and where can I find it? Many thanks in advance:) Quote
BIGAL Posted November 16, 2012 Posted November 16, 2012 Its part of a mnu best way is write a partial menu and use Menuload to load it. The sld's may be either individual or in a SLB (library) its just a case of the name in your menu. Heres a sample working in just about any version of Autocad. ***MENUGROUP=BIGALSTDS ***POP15 **CADLIB [LIBRARY] [->Stddwgs] [TRENCH]$I=BIGALSTDS.TRENCH $I=* [<-PIPES]$I=BIGALSTDS.PIPES $I=* ***image **TRENCH [TRENCH] [bIGALSLD(CGG101,KERB)]^C^C(openblk "P:/ACADSTDS/CIVIL STANDARDS/CGG101") [bIGALSLD(CGG102,NATURE)]^C^C(openblk "P:/ACADSTDS/CIVIL STANDARDS/CGG102") **PIPES [PIPES] [bIGALSLD(SD201,SUBSOIL)]^C^C(openblk "P:/ACADSTDS/CIVIL STANDARDS/CGG201") [bIGALSLD(SD202,FLUSHOUT)]^C^C(openblk "P:/ACADSTDS/CIVIL STANDARDS/CGG202") Quote
MartinD81 Posted November 16, 2012 Author Posted November 16, 2012 Thanks, I see the make up of it now in the menu file. Best get cracking on it. One further question. I use a lisp file to insert a block (valve) on a line, it breaks the line eitherside of the block, and inserts the block at 0degrees. How do it write in code that, after insertion, will enable automatic selection of the inserted block, and offer the user a 180deg flip through its midpoint. Or would it be easier to offer rotation direction at insertion point? The only issue with this is that attribute text is inserted upsidedown. Thanks again. Quote
BIGAL Posted November 22, 2012 Posted November 22, 2012 A bit of code (setq ans (getstring "\nPress any key to flip block <Cr> for No")) (if (/= ans nil) (command "Rotate" "L" "" 180) ; expects correct unit settings ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.