Jump to content

make block.


Nilesh Jagtap

Recommended Posts

hi ...guys

i want to make a block such that its defualt attribute value=insertion point of that block in that dwg.

is it possible make this type of block?

it may be.....i m new user

if somebody have idea plz post it.....:D

Link to comment
Share on other sites

Yes, it is possible. Back on September 16th, 2004 forum super member fuccaro wrote two lisp routines called MARKPUT and MARKUPDATE in response to a similar request. I suggest that you click on the link below and read the entire thread. Pay particular attention to the way MARKPUT is written in the event you wish to make minor changes (referencing your block). And please, if you do edit the routines, give credit where credit is due by including fuccaro's name. It is the proper way of doing things.

 

http://www.cadtutor.net/forum/showthread.php?t=1738

Link to comment
Share on other sites

alternatively you can create a block with your attribute in it. Then open it using BEDIT and right click to Insert Field in the value field. Look for Block Placeholder and use the Position field.

 

Once done insert your block - DO NOT TYPE IN A VALUE!

If you move your block you will need to REGEN the drawing to get the fields to update.

Link to comment
Share on other sites

Fields. Yes. That's a good point and one I that keeps slipping my mind despite the fact I make good use of MS Access (database) which also uses fields.

Link to comment
Share on other sites

Fields are good, but you must use an MtextAttribute - I have a LISP that will update all similarly tagged attributes with the correct field:

 

[ATTACH]13732[/ATTACH]

what else would you use? fields work in mtext, dtext, attdef.

Link to comment
Share on other sites

what else would you use? fields work in mtext, dtext, attdef.

 

Lee, I'm confused. I used a normal AttDef which worked. Is this an MtextAttribute?

 

Yeah, sorry, not sure what planet I was on when I wrote that :oops:

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.

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