ectech Posted December 1, 2010 Posted December 1, 2010 Dear All, Anyone can tell me (assoc 270 (entlast)). 270 is stand for which entities ? I can't find this item in dxf code table. Thanks a lot ! Quote
pBe Posted December 1, 2010 Posted December 1, 2010 MATERIAL group codes ? 270 Projection method of bump map mapper (default = 1): 1 = Planar 2 = Box 3 = Cylinder 4 = Sphere Quote
ectech Posted December 2, 2010 Author Posted December 2, 2010 Thanks for your reply. I'm not sure this is material group codes or not but from existing code, it want to check the drawing unit is metric or not. After checking with the (assoc 270 (entsel)). It will use (setq a (cdr (assoc 270 xxx))) to check the value is equal to 55 or not. MATERIAL group codes ? 270 Projection method of bump map mapper (default = 1): 1 = Planar 2 = Box 3 = Cylinder 4 = Sphere Quote
The Buzzard Posted December 2, 2010 Posted December 2, 2010 Look in the Dimstyle Table Group I highlighted it in red. 100 Subclass marker (AcDbDimStyleTableRecord) 2 Dimension style name 70 Standard flag values (bit-coded values): 16 = If set, table entry is externally dependent on an xref 32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved 64 = If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is for the benefit of AutoCAD® commands. It can be ignored by most programs that read DXF™ files and need not be set by programs that write DXF files) 3 DIMPOST 4 DIMAPOST 5 DIMBLK (obsolete, now object ID) 6 DIMBLK1 (obsolete, now object ID) 7 DIMBLK2 (obsolete, now object ID) 40 DIMSCALE 41 DIMASZ 42 DIMEXO 43 DIMDLI 44 DIMEXE 45 DIMRND 46 DIMDLE 47 DIMTP 48 DIMTM 140 DIMTXT 141 DIMCEN 142 DIMTSZ 143 DIMALTF 144 DIMLFAC 145 DIMTVP 146 DIMTFAC 147 DIMGAP 148 DIMALTRND 71 DIMTOL 72 DIMLIM 73 DIMTIH 74 DIMTOH 75 DIMSE1 76 DIMSE2 77 DIMTAD 78 DIMZIN 79 DIMAZIN 170 DIMALT 171 DIMALTD 172 DIMTOFL 173 DIMSAH 174 DIMTIX 175 DIMSOXD 176 DIMCLRD 177 DIMCLRE 178 DIMCLRT 179 DIMADEC [color=red][b]270 [/b][/color] [color=red][b]DIMUNIT (obsolete, now use DIMLUNIT AND DIMFRAC) [/b][/color] 271 DIMDEC 272 DIMTDEC 273 DIMALTU 274 DIMALTTD 275 DIMAUNIT 276 DIMFRAC 277 DIMLUNIT 278 DIMDSEP 279 DIMTMOVE 280 DIMJUST 281 DIMSD1 282 DIMSD2 283 DIMTOLJ 284 DIMTZIN 285 DIMALTZ 286 DIMALTTZ 287 DIMFIT (obsolete, now use DIMATFIT and DIMTMOVE) 288 DIMUPT 289 DIMATFIT 340 DIMTXSTY (handle of referenced STYLE) 341 DIMLDRBLK (handle of referenced BLOCK) 342 DIMBLK (handle of referenced BLOCK) 343 DIMBLK1 (handle of referenced BLOCK) 344 DIMBLK2 (handle of referenced BLOCK) 371 DIMLWD (lineweight enum value) 372 DIMLWE (lineweight enum value) Quote
pBe Posted December 2, 2010 Posted December 2, 2010 Look in the Dimstyle Table GroupI highlighted it in red. [color=red][b]270 [/b][/color] [color=red][b]DIMUNIT (obsolete, now use DIMLUNIT AND DIMFRAC) [/b][/color] Now that makes more sense Quote
ectech Posted December 2, 2010 Author Posted December 2, 2010 Thank you so much for your help ! Look in the Dimstyle Table GroupI highlighted it in red. 100 Subclass marker (AcDbDimStyleTableRecord) 2 Dimension style name 70 Standard flag values (bit-coded values): 16 = If set, table entry is externally dependent on an xref 32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved 64 = If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is for the benefit of AutoCAD® commands. It can be ignored by most programs that read DXF™ files and need not be set by programs that write DXF files) 3 DIMPOST 4 DIMAPOST 5 DIMBLK (obsolete, now object ID) 6 DIMBLK1 (obsolete, now object ID) 7 DIMBLK2 (obsolete, now object ID) 40 DIMSCALE 41 DIMASZ 42 DIMEXO 43 DIMDLI 44 DIMEXE 45 DIMRND 46 DIMDLE 47 DIMTP 48 DIMTM 140 DIMTXT 141 DIMCEN 142 DIMTSZ 143 DIMALTF 144 DIMLFAC 145 DIMTVP 146 DIMTFAC 147 DIMGAP 148 DIMALTRND 71 DIMTOL 72 DIMLIM 73 DIMTIH 74 DIMTOH 75 DIMSE1 76 DIMSE2 77 DIMTAD 78 DIMZIN 79 DIMAZIN 170 DIMALT 171 DIMALTD 172 DIMTOFL 173 DIMSAH 174 DIMTIX 175 DIMSOXD 176 DIMCLRD 177 DIMCLRE 178 DIMCLRT 179 DIMADEC [color=red][b]270 [/b][/color] [color=red][b]DIMUNIT (obsolete, now use DIMLUNIT AND DIMFRAC) [/b][/color] 271 DIMDEC 272 DIMTDEC 273 DIMALTU 274 DIMALTTD 275 DIMAUNIT 276 DIMFRAC 277 DIMLUNIT 278 DIMDSEP 279 DIMTMOVE 280 DIMJUST 281 DIMSD1 282 DIMSD2 283 DIMTOLJ 284 DIMTZIN 285 DIMALTZ 286 DIMALTTZ 287 DIMFIT (obsolete, now use DIMATFIT and DIMTMOVE) 288 DIMUPT 289 DIMATFIT 340 DIMTXSTY (handle of referenced STYLE) 341 DIMLDRBLK (handle of referenced BLOCK) 342 DIMBLK (handle of referenced BLOCK) 343 DIMBLK1 (handle of referenced BLOCK) 344 DIMBLK2 (handle of referenced BLOCK) 371 DIMLWD (lineweight enum value) 372 DIMLWE (lineweight enum value) Quote
Lee Mac Posted December 2, 2010 Posted December 2, 2010 The Group code 270 can mean different things for different entities, group 270 is used only because it has been designated to store a desired data type. http://autodesk.com/techpubs/autocad/acad2000/dxf/group_code_value_types_dxf_01.htm Quote
The Buzzard Posted December 2, 2010 Posted December 2, 2010 The Group code 270 can mean different things for different entities, group 270 is used only because it has been designated to store a desired data type. http://autodesk.com/techpubs/autocad/acad2000/dxf/group_code_value_types_dxf_01.htm Lee, I have only seen 270 referenced in MATERIAL under OBJECT Group Codes and DIMSTYLE in the Table Group codes and not anywhere else to be found. Where else could it be used? Maybe I am misinterpreting what you mean, Could you elaborate a bit? Quote
Lee Mac Posted December 2, 2010 Posted December 2, 2010 I'm just saying that a DXF Group code is not tied to an entity but rather used to store a specific data type (of course, there is a standard that is adhered to with regard to what the DXF code loosely represents, info here). For example, if someone asks "What is DXF 11?" All we can really say is that it is a Double precision 3D point, but of course it could belong to AttDefs, Attribs, Text, Lines, Solids, 3DFaces, Ellipses... the list is pretty big. Quote
The Buzzard Posted December 2, 2010 Posted December 2, 2010 I'm just saying that a DXF Group code is not tied to an entity but rather used to store a specific data type (of course, there is a standard that is adhered to with regard to what the DXF code loosely represents, info here). For example, if someone asks "What is DXF 11?" All we can really say is that it is a Double precision 3D point, but of course it could belong to AttDefs, Attribs, Text, Lines, Solids, 3DFaces, Ellipses... the list is pretty big. Ok, I get your point now. Thanks Quote
ectech Posted December 3, 2010 Author Posted December 3, 2010 thanks for Lee Mac ! But in my case,(setq a (cdr (assoc 270 (entget (xxx)))) if a not equal to 55 then it will call function to perform setup the units. In this case 270 is stand for ? I'm just saying that a DXF Group code is not tied to an entity but rather used to store a specific data type (of course, there is a standard that is adhered to with regard to what the DXF code loosely represents, info here). For example, if someone asks "What is DXF 11?" All we can really say is that it is a Double precision 3D point, but of course it could belong to AttDefs, Attribs, Text, Lines, Solids, 3DFaces, Ellipses... the list is pretty big. Quote
Lee Mac Posted December 3, 2010 Posted December 3, 2010 Well, what is the entity it is querying? i.e. what entity is 'xxx' in your example. Quote
ectech Posted December 6, 2010 Author Posted December 6, 2010 thanks for your reply, it querying the drawing units from the drawing. Well, what is the entity it is querying? i.e. what entity is 'xxx' in your example. Quote
irneb Posted December 6, 2010 Posted December 6, 2010 I think you may be misunderstanding Lee's question. He's asking what entity are you getting the 270 code from, is it a line, a dimension, a style, or any number of other possible graphical or non-graphical entities inside the drawing. Depending on what entity type it is, 270 may have differing meanings - that's why it could mean material of an entity or Dimension Units of a dimension style. When you state you're getting the drawing's measurement units, this is actually saved in a variable called InsUnits and you can get that using (getvar "InsUnits"). From the code and some discussions previously it seems that it's getting the code from a dimension style entity. You can obtain the same by setting the style current and then doing (getvar "DIMUNIT") - which is actually obsolete (use DIMLUNIT & DIMFRAC & DIMLFAC instead). Note a drawing may contain numerous styles which may each have their own "units" - so that even if a DWG is set to (say) Milli Meters, that particular dimension may still display the value in Inches. Quote
ectech Posted December 7, 2010 Author Posted December 7, 2010 thanks ! I wil search pervious code to get the answer. I think you may be misunderstanding Lee's question. He's asking what entity are you getting the 270 code from, is it a line, a dimension, a style, or any number of other possible graphical or non-graphical entities inside the drawing. Depending on what entity type it is, 270 may have differing meanings - that's why it could mean material of an entity or Dimension Units of a dimension style. When you state you're getting the drawing's measurement units, this is actually saved in a variable called InsUnits and you can get that using (getvar "InsUnits"). From the code and some discussions previously it seems that it's getting the code from a dimension style entity. You can obtain the same by setting the style current and then doing (getvar "DIMUNIT") - which is actually obsolete (use DIMLUNIT & DIMFRAC & DIMLFAC instead). Note a drawing may contain numerous styles which may each have their own "units" - so that even if a DWG is set to (say) Milli Meters, that particular dimension may still display the value in Inches. 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.