Jump to content

Recommended Posts

Posted


Can somebody help me with modifying my file output so that the follow order is achieved. The block coordinates also need to be added but I cannot figure out how to write the LISP command for it. VBA and macros work too, I just am less familiar with using those two.

Below you can see the two dwg and the output my current dimexp.lsp provides.
 

image.png.1eacb5cd4cf6d147db23191029130fb9.pngimage.png.62d1fc54f4a50a3c20b188d71076f22d.png
image.png.e454318d175b1c2e1271e029ab85fe9a.png

Any and all help is appreciated. Thank you!

dimexp.lsp

Posted

Note: If the code makes a table in CAD that can also work as I can just export the table out to excel fairly easily.

Posted (edited)

If you look at this for insertion of a block, as a start, but you will need to work out is it a dim or a block

(setq ent (entget (car (entsel "\nPick a block))))
(setq ins (cdr (assoc 10 ent)))

 

Edited by BIGAL
Posted
1 hour ago, BIGAL said:

If you look at this for insertion of a block, as a start, but you will need to work out is it a dim or a block


(setq ent (entget (car (entsel "\nPick a block))))
(setq ins (cdr (assco 10 ent)))

 

Better check the 'assco' and also make sure you have a selection for entget. 😉

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