Reply To: Centerpoint in simpel 2D symbol

Home Forums Problems and solutions in GDL Object design Centerpoint in simpel 2D symbol Reply To: Centerpoint in simpel 2D symbol

#2980
Anders Juul
Participant

Thanks David

But if the symbol is more complex like attached. Do i have to rewrite the code to?
I created this symbol by select the drawings, and use “save selection as object”

___

_paperToModel = GLOB_SCALE / 1000
_size1_model = Str_mm * size1_mm * _paperToModel
_size2_model = Str_mm * size2_mm * _paperToModel

mul2 _size1_model , _size2_model
add2 -6.838723289463, -2.084918350452
pen penAttribute_1
fill fillAttribute_1
poly2_b{5} 15, 2, 0, 3, penAttribute_1, penAttribute_2,
0, 0, 1, 0, 0, 1, 0,
6.838723289463, 2.484918350452, 1,
6.838723289463, 2.084918350452, 1,
7.238723289463, 2.084918350452, 1,
7.238723289463, 2.284918350453, 1,
7.063723289463, 2.109918350452, 1,
6.938723289463, 2.109918350452, 1,
7.063723289463, 2.234918350452, 1,
6.863723289463, 2.234918350452, 1,
6.863723289463, 2.334918350452, 1,
7.063723289463, 2.334918350452, 1,
6.938723289463, 2.459918350452, 1,
7.063723289463, 2.459918350452, 1,
7.238723289463, 2.284918350453, 1,
7.238723289463, 2.484918350452, 1,
6.838723289463, 2.484918350452, 1
pen penAttribute_3
fill fillAttribute_1
poly2_b{5} 10, 2, 0, 3, penAttribute_3, penAttribute_3,
0, 0, 1, 0, 0, 1, 0,
7.063723289463, 2.334918350452, 1,
6.863723289463, 2.334918350452, 1,
6.863723289463, 2.234918350452, 1,
7.063723289463, 2.234918350452, 1,
6.938723289463, 2.109918350452, 1,
7.063723289463, 2.109918350452, 1,
7.238723289463, 2.284918350453, 1,
7.063723289463, 2.459918350452, 1,
6.938723289463, 2.459918350452, 1,
7.063723289463, 2.334918350452, 1
_____

Attachments: