LetsConstructIT / Grasshopper-TeklaDrawingLink

Grasshopper components for interacting with Tekla drawing area
MIT License
54 stars 6 forks source link

Mark creation #41

Open Mantsi opened 3 months ago

Mantsi commented 3 months ago

Hi

I have created functions that should create marks on reinforcement but it seems to work somewhat irregularly. I have created different pre-defined mark settings, but all markings are created with one marking setting even if I have specifically determined that each marking uses different setting. And sometimes no marks are created even if the input can recognize reinforcements. I think I'am using the tool incorrectly but could you give an example on how this component should be used?

image

olszewski-grzegorz commented 3 months ago

Hello @Mantsi ! I can see two potential issues based on the screnshot: 1) Mark component works on the mark attribute file. Just the name, not the content. You have used Mark attributes components as an input, but it's designed only for Associatvie Note component. Sample: image 2) Mark component operates on a tree of drawing objects which should be annotated and a list of attributes to be used. It would be safer, to invoke that component only once (or in a strict order) rather than what I can see above. This mix: tree + list will be resolved like: for every branch in a tree pick corresponding item in list. Try to pack your objects before interacting with Tekla API. Sometimes it can be hard, but in a bigger scripts will make your life easier when maintaining.

Please, give some feedback if now it works as you expected :)

Mantsi commented 3 months ago

Hi and thank you!

It works now! I think since I used attribute components in previous instances (with dimension line creation for example) that I just assumed that I need to use it now as well.

Follow up note. I still don't know why the mark component does not show the marks that it did create as an output:

image

olszewski-grzegorz commented 3 months ago

@Mantsi, what Tekla version are you using? I can imagine situation from your screenshot only when there was mark object associated with the provided model object. And that mark was created by hand or after baking previous script run in Tekla.

Please, try Mark component with single element without pre-existing marks. And provide the Tekla version, because it could be another reason why it is failing.