Attribute Field Diesel Formula with Automatic Numbering for Dynamic Blocks

Attribute Field Diesel Formula with Automatic Numbering for Dynamic Blocks

jtm2020hyo
Collaborator Collaborator
1,019 Views
4 Replies
Message 1 of 5

Attribute Field Diesel Formula with Automatic Numbering for Dynamic Blocks

jtm2020hyo
Collaborator
Collaborator

Hello friend.

Probably none requested this before.

 

I have an attached file, I need to add a number to each dynamic-block-attribute, named "#tableros" , without a repeated a number. 

I was using this method: "field1-field2-field3"; example: TDE-D-140

 

field1: name VISIBILITY state 

field2: Layer name

field3: formula {BlockInsertPointAxisX+BlockInsertPointAxisY}

 

in field3 the formula uses the regular block InsertPoint with an "anonymous" name, instead of dynamic block with name "#tableros", "decimal" value with a "precision" of  "0" instead of "0.00"

 

 

but in some cases, I get repeated numbers.

for example for blocks with the axis X: 1095 and axis Y: 1105 have the same field3 (value 2200) with the axis X: 1105  axis Y: 1095 or the axis X: 1095.4 and axis Y: 1105.4 (for the precision "0")

 

In the field3 value of 2200, the "2" (of two thousand) represent the Level (0,1,2,3,4). Levels are indicated in Drawing attached.

 

dynamic block with name "#tableros" are inside regular blocks with "anonymous" name. Insertion

 

So, I need a field formula or field DieselExpression option to automatic numbering without repeat "field1-field2-field3" 

 

for this case, I wrote numbers manually with LEVEL "0" (inside attached drawing) like an example.

 

 

image.pngimage.png

 

0 Likes
1,020 Views
4 Replies
Replies (4)
Message 2 of 5

marko_ribar
Advisor
Advisor

Somehow I think you partially answered your question in your request... IMO I would place levels plans this way : level 0 - Zcoords=0.0; level 1 - Zcoords=1.0; and so on... All levels should be xref DWGs overlapped at the same base point 0,0,0 and have different elevations... Layers of xrefs would then be different, so that each xref could be frozen-thawed as desired with the same plotting boundaries for each level viewport - plan level... With this intervention each field 2 representing Layer would also represent both Layername/level-xref... For position indicator I would use field 3 and field 4 representing corresponding X and Y coordinate separately - multiplied with factor 10.0 and set precision to "0"... This means that each dynamic block would have different specification and I would mention in drawing scale that factor of scale is 10.0 => coordinate ratio Rcoords=10:1... Viewports - drawings of levels would be plotted at correct ratio R=1:???, but Rcoords=10:1... So everything is explained and presented in correct way... X=1095.4 and Y=1105.4 would be 10954-11054 and that's different than 10950-11050, and if X=1105 and Y=1095 then 11050-10950 is certainly different than 10950-11050...

I hope you understood my intentions how you could solve this problem, so basically you would have to add extra field 4, but everything would be fine and automatically represented as should...

M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 5

marko_ribar
Advisor
Advisor

I forgot to say that you should make one master DWG with Xrefs and one main plot DWG with Xrefs xbinded so that dynamic blocks could obtain through field 2 correct layer/level description...

Regards, M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 4 of 5

marko_ribar
Advisor
Advisor

Discard my last post... I should have said not xbind, but pure bind xrefs and after that explode blocks-previous xrefs...

To see what I am talking about, I've created simple example with 2 xrefs (xref1 and xref2)... Look into attachment...

Regards, M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 5 of 5

jtm2020hyo
Collaborator
Collaborator

thanks for your help.

 

actually, I'm using a combination of Coordinates with Rotation:

 

FIeld_X_Y_Rot: "InsertPointY/10+InsertPointX/10+Rotation/10"

 

I understand what you said. Using InsertPointAxisCoordinates, all block should be numbering without repeat any number, but I have a requirement more: Use fewer digits as is possible. after hours testing I found that FIeld_X_Y_Rot formula do this work.

 

I'm curious about attribute field diesel formulas. Is there a way to link coordinates (axis X axis Y) to letters (A, B, C, D)?

example:

AxisX(1000,1999), AxisY(1000,1999) =A ; here all blocks inside those coordinates drop a value "A" in attribute Field

AxisX(2000,2999), AxisY(2000,2999) =B ; here all blocks inside those coordinates drop a value "B" in attribute Field

AxisX(3000,3999), AxisY(3000,3999) =C ; here all blocks inside those coordinates drop a value "C" in attribute Field

AxisX4000,4999), AxisY(4000,4999) =D ; here all blocks inside those coordinates drop a value "D" in attribute Field

 

Or use attribute Field formulas to numbering automatically since 001 to 100 (same numbers digits) without repeat numbers.

 

PD: I leave my attached file with an updated block with field automatic numbering.

 

 

0 Likes