Jump to content



Recommended Posts

Hi Guys


I have a .dwt with all of my custom blocks, leaderstyles, dimstyles and textstyles. i have allot of custom  lisp files that generates custom styles and leaders using my styles that i have set up in my .dwt file. I have found that if i work on a drawing from another person and i want to use my "custom" lisp commands i have to drag in my styles via design center. is there a way of adding these styles automatically from my .dwt into the current drawing via lisp? then i can just edit my lisp files to include this instead of dragging in styles from my own template file?

Link to comment
Share on other sites

1 hour ago, Tharwat said:

One way is to use INSERT command to import your drawing into the current open one.

this is what i am currently doing, but just checking if there might be a controlled manner where only specific items are imported

Link to comment
Share on other sites

I use a terrific program by Lee Mac. I use command buttons for the different options. Look at Iee-mac.com/steal.html.

I think this will do exactly what you want.

  • Agree 1
Link to comment
Share on other sites

Posted (edited)

Like jerry look at Lee-mac Steal.lsp you can run it programmatically so no user input.


(if (not Steal)(load "StealV1-8"))
(steal "nameof dwg" list-of-items-to-steal)


Edited by BIGAL
Link to comment
Share on other sites

I might be late to the party here, but for styles - dimensions, texts, leaders and so on I would make up a LISP for each style you you, say "My Font" "My Clients Font" and so on. These should be very small LISPS, and quick to load, then either load them using the start-up suit, or my preference would be to run them as you execute each of your custom LISPS. So for example you work for client 1, run one of your LISPS and only fonts they want to see would be loaded, instead of say "My Other Client Font" as well (some people are odd about other clients knowing you are working for each other you see). Rather than a global 'steal' and grabbing everything. One advantage of this is that if the style is updated you can run the LISP and the style will update with it in the drawing keeping it up to date.


Note of course this would also work using Steal and specify with each LISP which styles to steal and from there. One issue here might be if the file system, or location changes at all - in my current company I have had USB drives with styles (access now denied), C drive (or X, Y, Z), and various online virtual drives. If done with LISP you just need to update the trusted fuiles location once and you get them all.


For blocks Steal as above or again custom LISP for each, set up a file for each block and a LISP for each, say "My Clients Door" which will insert My Clients Door in the drawing. You could even go as far for simple blocks to save the block geometry as a LISP, and again saved in a trusted location, insert in the first instance using a LISP (I do that with my most common blocks, far quicker than the insert command route)


Anyway that is how I would go, define the styles in LISP and call that LISP in each custom LISP. Blocks I might go with a LISP and INSERT



Link to comment
Share on other sites

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.

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...