Message 1 of 11
How to get the same properties than "List" Command with a visual lisp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi colleagues.
I have a prostructure objects on my file. I need to get some geometrical and data info from these objects.
When i use "List" Command I get this info:
KS_SHAPE Capa: "PS_Shape"
Espacio: Espacio modelo
Identificador = 7876
Coordinates of Object Entity Coordinate System
Origin X=-4518.9589 Y=110650.0000 Z= 6641.6238
Xaxis X= 1.0000 Y= 0.0000 Z= 0.0000
Yaxis X= 0.0000 Y= -1.0000 Z= 0.0000
Number of Logical Links 1
Link 0 Target->7875 Type=1
Index =0 Connections=0 Bolts=0
VersionIndex = 0
Modification: 30.09.2021 09:02 | | Modification
Name of Part =IPE 100
PartOrigin =-1
Number of CutPlanes =2
CutPlane No. 1
Point on CutPlane
X=-4518.9589 Y=110650.0000 Z= 6641.6238 Flag=0
NormalVector of Cutplane
X= 0.0000 Y= 0.0000 Z= 1.0000
CutPlane No. 2
Point on CutPlane
X=-4518.9589 Y=110650.0000 Z= 6261.9500 Flag=0
NormalVector of Cutplane
X= 0.0000 Y= 0.0000 Z= -1.0000
Pulse INTRO para continuar:
Katalog = DIN.DIN_IPE
Key = IPE100
Name = IPE 100
DimSystem = Metric
GravityX = 27.5000 GravityY = 50.0000
Med Res PolyCount=1
Med Nr=0 X=-27.500000 Y=-50.000000 Bulge=0.000000
Med Nr=1 X=27.500000 Y=-50.000000 Bulge=0.000000
Med Nr=2 X=27.500000 Y=-44.300000 Bulge=0.000000
Med Nr=3 X=9.050000 Y=-44.300000 Bulge=-0.414214
Med Nr=4 X=2.050000 Y=-37.300000 Bulge=0.000000
Med Nr=5 X=2.050000 Y=37.300000 Bulge=-0.414214
Med Nr=6 X=9.050000 Y=44.300000 Bulge=0.000000
Med Nr=7 X=27.500000 Y=44.300000 Bulge=0.000000
Med Nr=8 X=27.500000 Y=50.000000 Bulge=0.000000
Med Nr=9 X=-27.500000 Y=50.000000 Bulge=0.000000
Med Nr=10 X=-27.500000 Y=44.300000 Bulge=0.000000
Med Nr=11 X=-9.050000 Y=44.300000 Bulge=-0.414214
Med Nr=12 X=-2.050000 Y=37.300000 Bulge=0.000000
Med Nr=13 X=-2.050000 Y=-37.300000 Bulge=-0.414214
Med Nr=14 X=-9.050000 Y=-44.300000 Bulge=0.000000
Med Nr=15 X=-27.500000 Y=-44.300000 Bulge=0.000000
Pulse INTRO para continuar:
Med Nr=16 X=-27.500000 Y=-50.000000 Bulge=0.000000
Shapelen = 379.6738
MidLine from =-4518.9589,110650.0000, 6641.6238
to =-4518.9589,110650.0000, 6261.9500
InsertX = 0.0000 InsertY= 0.0000
All of these data are important for my code. I need to find these info and use to crop the object and draw some especial elements from this info.
I tried to get the info with entget(it's not enought)
((-1 . <Nombre entidad: 271b8e24660>) (0 . "KS_SHAPE") (5 . "7876") (102 . "{ACAD_XDICTIONARY") (360 . <Nombre entidad: 271ba8d6b50>) (102 . "}") (330 . <Nombre entidad: 271b8e0f6c0>) (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "PS_Shape"))
Also I tried to get with vlax-get-property, but the vlax-dump-object command throw these data:
; IAcadEntity: Interfaz de entidades de AutoCAD
; Valores de propiedad:
; Application (RO) = #<VLA-OBJECT IAcadApplication 00007ff6e9442ec0>
; Document (RO) = #<VLA-OBJECT IAcadDocument 00000271bad76f38>
; EntityTransparency = "PorCapa"
; Handle (RO) = "7876"
; HasExtensionDictionary (RO) = -1
; Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 00000271d3154208>
; Layer = "PS_Shape"
; Linetype = "ByLayer"
; LinetypeScale = 1.0
; Lineweight = -1
; Material = "ByLayer"
; ObjectID (RO) = 42
; ObjectName (RO) = "Ks_Shape"
; OwnerID (RO) = 44
; PlotStyleName = "ByLayer"
; TrueColor = #<VLA-OBJECT IAcadAcCmColor 00000271d31545c0>
; Visible = -1
; Métodos soportados:
; ArrayPolar (3)
; ArrayRectangular (6)
; Copy ()
; Delete ()
; GetBoundingBox (2)
; GetExtensionDictionary ()
; GetXData (3)
; Highlight (1)
; IntersectWith (2)
; Mirror (2)
; Mirror3D (3)
; Move (2)
; Rotate (2)
; Rotate3D (3)
; ScaleEntity (2)
; SetXData (2)
; TransformBy (1)
; Update ()
None of these properties or methods give me some interesting info.
I'm very lose with this issue.
It's important to explain that the object are a bentley object from ProStructure and is possible to manage by Object enable software...
Best regards