Jump to content

Recommended Posts

Posted

Hello,

 

does anybody have a "standalone" version of Add Table function by Lee Mac? I've tried to incorporate it to my script but got confused. Probably I'm not sure how to use "spc" variable. Maybe there is a 'stripped' version of function Add Table https://www.lee-mac.com/lisp/html/SumAttributeValuesV1-1.html so it's possible to just paste it into another script?

 

Similar clean function of write CSV is here https://www.lee-mac.com/writecsv.html

 

Thanks for reply.

Posted (edited)

@Marcin O I might help if you explain what your trying to do. In Lee Mac's (lm:addtable) function, the "spc" argument is for a VLA Object that corresponds to the Modelspace or Paperspace of the drawing.

 

Look at where he gets the argument in the main body of the program:

(if (= 1 (getvar 'cvport))
        (setq spc (vla-get-paperspace (LM:acdoc)))
        (setq spc (vla-get-modelspace (LM:acdoc)))
    )

 

Edited by pkenewell
Posted (edited)

@Marcin O

Give This a Try: Look at my (pjk_Addtable) function for reference. It's tailored to your list. Look at the comments to change text heights, Table Style Name, Title, etc. to your preference.

 

EDIT: Updated table to include the Title row on top!

 

SumAttributeByTypeAndDetails.lsp

Edited by pkenewell
Posted

Dear @pkenewell,

 

thank You for help, it works like a charm :) 

 

Best greetings M

  • Like 1

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