Jump to content

Recommended Posts

Posted

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 !

Posted

MATERIAL group codes ?

270 Projection method of bump map mapper (default = 1):

1 = Planar

2 = Box

3 = Cylinder

4 = Sphere

Posted

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

Posted

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) 

Posted
Look in the Dimstyle Table Group

I 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 :)

Posted

Thank you so much for your help !

 

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) 

Posted
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?

Posted

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.

Posted
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

Posted

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.

Posted

Well, what is the entity it is querying? i.e. what entity is 'xxx' in your example.

Posted

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

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.

Posted

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.

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