CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedASCPOINT LSP - Importing elevations as attribute

 Post Reply Post Reply Page  12>
Author
steelworx View Drop Down
Newbie
Newbie


Joined: 17.Jan.2013
Location: Canada
Using: AutoCAD2012
Status: Offline
Points: 2
Direct Link To This Post Topic: ASCPOINT LSP - Importing elevations as attribute
    Posted: 18.Jan.2013 at 13:52
The ASCPOINT LSP works great at importing points into AutoCAD but when I try and import the elevation as the attribute I am having some major annoyances.

Using 358147.369,4982842.266,110.349,110.349 as an example where ASCPOINT requires X,Y,Z,attribute and "110.349 should be displayed as the text on the block but I either get "110.349000000" if imported as shown above or if I add another character like "358147.369,4982842.266,110.349,EL110.349" then it will only show the elevation before the decimal like "EL110" (missing the EL110."349" which is important information to display.) I have been importing it as "358147.369,4982842.266,110.349,110.349" and getting 110.349000000 and manually editing each block to remove the 000000 at the end.

Is there any way to edit ASCPOINT to import elevations as the attribute without these 000000 at the end?



ASCPOINT: http://www.cadforum.cz/cadforum_en/tips.asp?t=ascpoint

Edited by steelworx - 18.Jan.2013 at 13:52
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
Direct Link To This Post Posted: 18.Jan.2013 at 14:18

Unfortunately there is no easy solution for either of these two problems in ASCPOINT.

Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 18.Jan.2013 at 17:45
Two possibilities-

Revise the lisp. Should be fairly straightforward (but I don't know the routine you are using). The lisp has to read the elevation, as text, from a file, convert it to a number to give the point a z value, and apparently convert that real to a string to place it in the attribute. It could use a precision othe than 6 decimal places when converting. Or it could use the initially read string to place in the attribute.

Two, use another list to revise all selected point inserts to display number of decimals you specify.
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 19.Jan.2013 at 02:17
I made some lisp modifications that seem to work for your particular case. It's not a "robust" solution that handles all variations. It displays elevations to 3 decimal places.
 
If you know a little about editing lisp, it involves replace a the defun "toSym" in ASCPOINT.LSP with the following:
 
(defun toSym (s) ; VM
  (cond
     ((eq (type s) 'SYM)
         (vl-symbol-name s)
     )
     ((eq (type s) 'REAL)
        (rtos s 2 3)
     )
     ((eq (type s) 'INT)
         (rtos s 2 0)
     )
     ((not s) "")
     (T s)
   )
)
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
Direct Link To This Post Posted: 19.Jan.2013 at 14:59
Or better yet - we have used a more general line parser and generalized ASCPOINT.LSP (covering both mentioned problems) is now available for download on the Download page.
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
Miche11e View Drop Down
Newbie
Newbie


Joined: 28.Feb.2013
Location: South Africa
Using: Autocad2013
Status: Offline
Points: 1
Direct Link To This Post Posted: 01.Mar.2013 at 09:02
I have tried it and it works well, however I can't get my attribute to show. It remains 0.00

Back to Top
Torban View Drop Down
Newbie
Newbie


Joined: 25.Aug.2013
Location: United States
Using: Mechanical Desktop 2009
Status: Offline
Points: 9
Direct Link To This Post Posted: 25.Aug.2013 at 20:18
Vladimir,
Using the ASCPOINT.lisp
I have tried everything I can think of to get the attributes to come in but it's just not happening!!
XYZ no problem and it inserts the other points with a block at each one but does not update the attribute field???
I have a block with a sphere and one attdef with name pnum, noting in the prompt and 000-00 for the default and that is what gets put into all the attribute labels (it doesn't update them!!)
Any ideas??

Tom
Back to Top
Torban View Drop Down
Newbie
Newbie


Joined: 25.Aug.2013
Location: United States
Using: Mechanical Desktop 2009
Status: Offline
Points: 9
Direct Link To This Post Posted: 25.Aug.2013 at 20:20
Michelle,
Did you ever solve this problem??

Tom
Back to Top
Torban View Drop Down
Newbie
Newbie


Joined: 25.Aug.2013
Location: United States
Using: Mechanical Desktop 2009
Status: Offline
Points: 9
Direct Link To This Post Posted: 27.Aug.2013 at 14:42
Is there anyone that can help me with this??

Confused

Tom
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 27.Aug.2013 at 15:39
A REGEN doesn't force an update?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 1,289 seconds.