Hi everybody.
I’m trying to write a script that converts from BoltArray to Mark. Right now I don’t know how to convert. Can anyone give me a solution. Thank you.
Script files and illustrations are attached!
BoltArray To Mark.gh (5.4 KB)
Hi everybody.
I’m trying to write a script that converts from BoltArray to Mark. Right now I don’t know how to convert. Can anyone give me a solution. Thank you.
Script files and illustrations are attached!
Hi Mr.Min,
there is some sample code in the Tekla API reference for the Mark class:
https://developer.tekla.com/tekla-structures/api/28/11169
In particular, look for this section which seems to create a mark based on a ModelObject (like a BoltArray):
Mark Mark = new Mark(modelObject);
Mark.Attributes.Content.Clear();
Mark.Attributes.Content.Add(new TextElement("My Mark"));
Mark.Placing = new AlongLinePlacing(PartMiddleStart, PartMiddleEnd);
Mark.InsertionPoint = PartCenterPoint;
Mark.Insert();
For Tekla API stuff you can also try the Tekla developer forums:
https://forum.tekla.com/forum/269-api-general-discussions/
Cheers,
Sebastian
Thank you for responding. In fact, I’m wanting to get the mark from the boltarray, not create the mark.
Hi Sebastian, I have a few questions if you could please help:
Hi,
Sorry for the late reply (vacation times).
For these drawing API questions I’d recommend the Tekla Developer center with examples and API reference:
as well as the API forum:
https://forum.tekla.com/forum/269-api-general-discussions/
Cheers,
Sebastian