Jump to content

Recommended Posts

Posted

It works great but this is what I'm getting

 

Command: bom

 

Make Number Increment : 301

 

Specify insertion point: _endp of Duplicate definition of block AME_NIL

ignored.

Duplicate definition of block AME_SOL ignored.

 

Value for attribute "NOTE" :

 

Value for attribute "QTY" :

 

Value for attribute "MATERIAL" :

 

Value for attribute "SERVICE" :

 

Value for attribute "DESCRIPTION" :

 

Specify insertion point or [Exit] :

Duplicate definition of block AME_NIL ignored.

Duplicate definition of block AME_SOL ignored.

  • Replies 29
  • Created
  • Last Reply

Top Posters In This Topic

  • fcfcadd

    17

  • alanjt

    13

Top Posters In This Topic

Posted

Aww, come on man, you don't want to see those prompts? :roll:

 

Updated in original post.

Posted

Lol. I didn't know that's what those were. I've never seen lisp wrote this way. Is this a form of vba code

Posted
Lol. I didn't know that's what those were. I've never seen lisp wrote this way. Is this a form of vba code

 

You would see the same prompts if using INSERT.

 

It's Visual LISP. Uses ActiveX COM (similar to VBA, but not the same). Autodesk first released it with AutoCAD in r2000 (pretty sure).

 

So, is it working?

Posted

Ah that's cool. Yes it is working perfectly, thank you so much.

Posted
Ah that's cool. Yes it is working perfectly, thank you so much.

You're welcome. :)

Posted

Got another idea for that program. It would be a seperate program that would start the bom. It would be a BOMS start routine that would insert this header block in the top right corner of the page then would insert the bom block in the lower left corner of the header and then proceed on with the bom program. That way we could create the entire bom from scratch and then be able to come back and add more lines to the bom with the bom program. Would that be to much to ask?

 

BOM HEADER.dwg

BOM HEADER.dwg

Posted

Remember, I'm doing this on my time and without compensation.

 

If I have some free time tonight, I'll give it a go.

Posted

That sounds good. Thank you so much for all your help.

Posted

Well I have been struggling to find out how to get this to work since I have no experience with Visual Lisp. But here is what I'd like for this program to do:

 

(defun c:BOMS (/ BlockName LayerName pt lst)

;; Insert "BOMH" block (required)

;; Then Continuously insert "BOM" block (required) and label attributes

;; Block will be placed on "BORDER01" layer (created if doesn't exist)

;; User also has option to place next block 1/4" below previously placed block

;; Alan J. Thomspon, 05.18.10

 

I have tried to figure out what each line is doing but with no luck.

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