Jump to content

Recommended Posts

Posted

Hi all

 

I got a drawing from client who has assigned some properties to the polyline which has given in belowed pictures. Can anybody tell me how to trace that properties.

 

Sample drawing is also attached.

 

waiting for your reply

 

Polyline.jpg

Sample Polyline.dwg

Posted

Its probably come from importing a GIS shape file. Which can have extra information attached to a autocad object.

Posted

Yes.... I think so

 

But is there any option from which we can get this properties by lisp?

Posted

Hi Satish,

 

try to dump all propreties with

 (vlax-dump-object (vlax-ename->vla-object (car (entsel "\nSelect Object:"))) t)

I can't access to those properties in vanila AutoCAD...

 

Henrique

Posted

tried that.... didnt work:sweat:

Posted

On inspecting the entity using this utility, the data looks to be derived from Autodesk Map software:

  (
   (-1 . <Entity name: 7ffffb13d40>)
   (0 . "LWPOLYLINE")
   (5 . "1D4")
   (102 . "{ACAD_XDICTIONARY")
   (360 . <Entity name: 7ffffb13d50>)
   (102 . "}")
   (330 . <Entity name: 7ffffb109f0>)
   (100 . "AcDbEntity")
   (67 . 0)
   (410 . "Model")
   (8 . "SEG1_6_Concession_Blocks")
   (100 . "AcDbPolyline")
   (90 . 100)
   (70 . 1)
   (43 . 0.0)
   (38 . 0.0)
   (39 . 0.0)
   (10 1.64978e+006 2.08604e+006)
   (40 . 0.0)
   (41 . 0.0)
   (42 . 0.0)
   (91 . 0)
   ... < vertex entries > ...
   (10 1.64978e+006 2.08604e+006)
   (40 . 0.0)
   (41 . 0.0)
   (42 . 0.0)
   (91 . 0)
   (210 0.0 0.0 1.0)
   (-3
     (
       "AcMap_E615D161-C9D7-11d3-839F-0060B0FB6B57"
       (1071 . 2)
       (1071 . 2)
       (1071 . 1)
     )
   )
 )

 

On inspecting the Extension Dictionary:

  (
   (-1 . <Entity name: 7ffffb13d50>)
   (0 . "DICTIONARY")
   (330 . <Entity name: 7ffffb13d40>)
   (5 . "1D5")
   (100 . "AcDbDictionary")
   (280 . 1)
   (281 . 1)
   (3 . "*A1")
   (360 . <Entity name: 7ffffb13d60>)
 )

 

And inspecting the entry within this dictionary:

  (
   (-1 . <Entity name: 7ffffb13d60>)
   (0 . "ACAD_PROXY_OBJECT")
   (5 . "1D6")
   (102 . "{ACAD_REACTORS")
   (330 . <Entity name: 7ffffb13d50>)
   (102 . "}")
   (330 . <Entity name: 7ffffb13d50>)
 )

 

Objects native to vertical applications will always be rendered as Proxy Objects when viewed in applications which do not support the object type.

Posted

My fault Lee did not elaborate like "Look up help re extracting information from a SHP file imported into Autocad Map". There can be heaps of hidden stuff, a common one is a contour line which has the obvious hidden value the contour level.

Posted

Personally, I don't have any experience working with the Map applications, and so instead I reverted to posting the information I gleaned from digging through the entity data.

Posted

You will have to look into Acad Map ade functions.

 

I can list some examples below:

 

(setq ent (car (entsel "\nSelect Entity:")));Get the entity

(setq tbl (ade_odgettables ent));Get the Table

(setq tbl-def (ade_odtabledefn tbl));Get the Table Definition

 

The help file that you are looking for is acmap-dev.chm.

 

I may have a copy of this file at home. Otherwise the help file is old and hard to find.

 

I can't spend too much time on this right now but can help with this topic later today or tomorrow.

 

I hope this helps,

 

regards,

 

Hippe013

Posted
You will have to look into Acad Map ade functions.

 

I can list some examples below:

 

(setq ent (car (entsel "\nSelect Entity:")));Get the entity

(setq tbl (ade_odgettables ent));Get the Table

(setq tbl-def (ade_odtabledefn tbl));Get the Table Definition

 

The help file that you are looking for is acmap-dev.chm.

 

I may have a copy of this file at home. Otherwise the help file is old and hard to find.

 

I can't spend too much time on this right now but can help with this topic later today or tomorrow.

 

I hope this helps,

 

regards,

 

Hippe013

 

Keep in mind Satish Rajdev would have to have Map or a Map vertical to have those lisp functions. I use a routine to label features of imported shape files, but it's set up to use our GIS data, wouldn't be much use to anyone else. There's also commands like MAPLABEL2ANN, but again only for us Map folk. I think he just wanted to know where those properties came from.

Posted

Lee, are you using straight acad? Do the functions I listed above work in your acad?

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