How to get to your block from a drawing

v98_lnk

Usenet Archive
Joined
Aug 1, 2003
Messages
2
Reaction score
0
Hello

Im trying to get a specific block from one drawing and in to another

This is what I have:
One drawing with many blocks, the blocks are under “c:\….\Drawing.dwg/block” I want to get one block from the drawing (with all the blocks) and put it in another drawing.

My question is how am I supposed to get the blocks from “Drawing/block”.

This I know
I can just open the drawing in designcenter and go to the drawing and click under block and there I have all the blocks, but I want to get them by using some kind of insert or some way not using the pointer.

This way I get the drawing open, but now I have to use the mouse to get them in to the new drawing. (command "adcenter" "adcnavigate" (strcat profilpath "/BALKSKO TYP IL FRONT OCH SIDA.dwg/Blocks"))

What I want to do is some kind of this:
(command "insert" (strcat profilpath "/BALKSKO TYP IL FRONT OCH SIDA.dwg/Blocks/BMF TYP IL 115x223 FRONT"))

where “bmf typ il 115x223 front” is the blockname of the block I want to have.

Can this be done?
thanks
 
If these are blocks that you are going to use in a lot of other drawings, then I would suggest that you create separate drawing files for each block. That way you can insert or xref the individual blocks into multiple other drawings. Makes thing a lot simpler. That way, when it come time to update or modify a block, you update the master file and then reinsert into the other drawings, or in the case of xrefs, the drawing will update the next time it is open.

Bill
 
Hey

That is a way to get around the problem, but it isn’t so good. There must be some way to do it more easily, because if you use your mouse its very simple. Just drag an drop. What i want to do is a lisp file where you can just click on what you want and the block will just appear.

Hopping for some one to solve this…

Fredrik
 
Do a search for "ObjectDBX" in this newsgroup - I have posted example code along with many others. If you can't find anything post back and I'll try to post some stuff - I'll be gone all weekend though - going to Sturgis.

jb
 
HEY that's not fair.
ride safe play hard.

Murph
 
HEY that's not fair.
ride safe play hard.

Thanks Murph!

Well, I'll come clean: I'm not going to Sturgis, South Dakota ;-(

We have a mini Sturgis Rally here in Central Florida for all of us who can't go to the real Sturgis - that'd be a week out of my busy schedule, maybe next year.

I'll definitely ride safe and play as hard as I can anyway . . ..

see ya.
 

Latest threads

Back
Top