jan_ek Posted August 13, 2015 Posted August 13, 2015 (edited) Hello I have a problem with the interpretation of the codes insert group (10 50 210) Can you explain graphically what each of the data codes. ((-1 . ) (0 . INSERT) (5 . 8CF95) (330 . ) (100 . AcDbEntity) (67 . 0) (410 . Model) (8 . 3dlayer) (100 . AcDbBlockReference) (2 . 3dblock1) (10 46103.6 -13732.2 73359.9) (41 . 1.0) (42 . 1.0) (43 . 1.0) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210 1.0 -6.12323e-017 0.0)) I'm not sure if it's possible but I would like to have all facilities were inserted in the global coordinate system.I wanted to write a function that will do it for all blocks. Edited August 13, 2015 by jan_ek Quote
BIGAL Posted August 14, 2015 Posted August 14, 2015 You need to look up DXF codes they vary dpending on the object but some items are always the same, O = Object type insert lien arc 10 = most times is a point, line-start insertpt 11 =most times is a point,line-end insertpt 8 = Layer just a suggestion using VL and Dumpit.lsp will display the item in a more descriptive manner Select object: ; IAcadBlockReference: AutoCAD Block Reference Interface ; Property values: ; EffectiveName (RO) = "DA1DRTXT" ; EntityTransparency = "ByLayer" ; Handle (RO) = "D998" ; HasAttributes (RO) = -1 ; HasExtensionDictionary (RO) = 0 ; InsertionPoint = (0.0 0.0 0.0) ; InsUnits (RO) = "Unitless" ; InsUnitsFactor (RO) = 1.0 ; IsDynamicBlock (RO) = 0 ; Layer = "DRGTEXT" ; Linetype = "ByLayer" ; LinetypeScale = 1.0 ; Lineweight = -1 ; Material = "ByLayer" ; Name = "DA1DRTXT" Quote
jan_ek Posted August 14, 2015 Author Posted August 14, 2015 Ok indeed description is more readable, thanks. So now I have a question which values (and how) to be converted to "Rotation" was equal to 0 and the object has not changed its position. Quote
Tharwat Posted August 14, 2015 Posted August 14, 2015 http://docs.autodesk.com/ACD/2011/ENU/filesDXF/WS1a9193826455f5ff18cb41610ec0a2e719-7a04.htm Quote
jan_ek Posted August 15, 2015 Author Posted August 15, 2015 Hello again unfortunately still do not understand what the codes 50 and 210. This is the same block inserted in the global coordinate system and when rotated coordinate system. The code value 10 does not seem to change, but change codes 50 and 210. How to convert their value to the global system. I'd like to convert all blocks to the global system. Can you explain to me the meaning of these codes in a graphical manner. Select entity: ((-1 . ) (0 . INSERT) (5 . C4C53) (330 . ) (100 . AcDbEntity) (67 . 0) (410 . Model) (8 . 3d) (100 . AcDbBlockReference) (2 . 3dtest) (10 83981.0 29657.0 -7.27596e-012) (41 . 1.0) (42 . 1.0) (43 . 1.0) (50 . 6.28319) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210 6.12323e-017 2.44929e-016 1.0)) Select entity: ((-1 . ) (0 . INSERT) (5 . C4C50) (330 . ) (100 . AcDbEntity) (67 . 0) (410 . Model) (8 . 3d) (100 . AcDbBlockReference) (2 . 3dtest) (10 83981.0 29657.0 0.0) (41 . 1.0) (42 . 1.0) (43 . 1.0) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210 0.0 0.0 1.0)) Quote
Lee Mac Posted August 15, 2015 Posted August 15, 2015 DXF Group 210 represents the extrusion vector or normal vector of the plane in which the block is inserted (that is, a vector perpendicular to all vectors in the plane); DXF Group 50 represents the rotation (in radians) of the block reference in this plane, measured anticlockwise from the x-axis. If you are looking for a graphical explanation, perhaps refer to this thread (requires Swamp membership to view). Quote
Recommended Posts
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.