AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

title block attribute mapping

3 REPLIES 3
Reply
Message 1 of 4
mauen
192 Views, 3 Replies

title block attribute mapping

I am trying to write a LISP file that maps different lines of my project descriptions to a common attribute name on my title block based on my dwg name. For example, if I have a drawing ##322-54####.dwg, and the first ## equals 21 and the last #### equals 1000, I want to map LINE13 of my project descriptions to my title block attribute named SERIES_NUMBER. I have the LISP file current working to read the file name correctly, but the problem is that LISP does not know what the LINEXX is. Is there a global variable that I can access my project descriptions, or how do I get LISP to understand the LINEXX or the string of characters for LINE13 of my project descriptions. I have attached my .wdt file that I am trying to create this functionality into.
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: mauen

I believe you can get these project descriptions with the following lisp

(setq lst (nth 1 (c:wd_proj_wdp_data_fnam (ace_getactiveproject))))

The return is a list with the first element, nth 0 as nil so that LINE1
would start at nth 1.

Hope this helps,
Pat Murnen

wrote in message news:5712863@discussion.autodesk.com...
I am trying to write a LISP file that maps different lines of my project
descriptions to a common attribute name on my title block based on my dwg
name. For example, if I have a drawing ##322-54####.dwg, and the first ##
equals 21 and the last #### equals 1000, I want to map LINE13 of my project
descriptions to my title block attribute named SERIES_NUMBER. I have the
LISP file current working to read the file name correctly, but the problem
is that LISP does not know what the LINEXX is. Is there a global variable
that I can access my project descriptions, or how do I get LISP to
understand the LINEXX or the string of characters for LINE13 of my project
descriptions. I have attached my .wdt file that I am trying to create this
functionality into.
Message 3 of 4
mauen
in reply to: mauen

Yea that works great. Thanks alot for your help.
Message 4 of 4
Anonymous
in reply to: mauen

Glad it worked.

Pat Murnen

wrote in message news:5713774@discussion.autodesk.com...
Yea that works great. Thanks alot for your help.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost