Jump to content

Recommended Posts

Posted

2012-11-16_0956_SLD.png

 

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:)

Posted

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")

Posted

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.

Posted

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
)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...