
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.
| Author |
Topic Search Topic Options
|
steelworx
Newbie
Joined: 17.Jan.2013
Location: Canada
Using: AutoCAD2012
Status: Offline
Points: 2
|
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
|
 |
Vladimir Michl
Senior Member
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
Posted: 18.Jan.2013 at 14:18 |
Unfortunately there is no easy solution for either of these two problems in ASCPOINT.
|
|
|
 |
CarlB
Senior Member
Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
|
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.
|
 |
CarlB
Senior Member
Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
|
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) ) ) |
|
 |
Vladimir Michl
Senior Member
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
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.
|
|
|
 |
Miche11e
Newbie
Joined: 28.Feb.2013
Location: South Africa
Using: Autocad2013
Status: Offline
Points: 1
|
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 
|
 |
Torban
Newbie
Joined: 25.Aug.2013
Location: United States
Using: Mechanical Desktop 2009
Status: Offline
Points: 9
|
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
|
 |
Torban
Newbie
Joined: 25.Aug.2013
Location: United States
Using: Mechanical Desktop 2009
Status: Offline
Points: 9
|
Posted: 25.Aug.2013 at 20:20 |
|
Michelle, Did you ever solve this problem??
Tom
|
 |
Torban
Newbie
Joined: 25.Aug.2013
Location: United States
Using: Mechanical Desktop 2009
Status: Offline
Points: 9
|
Posted: 27.Aug.2013 at 14:42 |
Is there anyone that can help me with this??  Tom
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
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>>
|
 |