You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following script creates a Text Label attached to an Edge within a Group.
Here is the situation before running the script (just a group and an edge)
After running the script. The Arrow Leader is wrongly positioned
However, if you enter the group, the arrow leader is actually well positioned.
Attached is the model and the script. Just run test_text_label in the Ruby console.
deftest_text_label#Find the group and its edge in the modelmodel=Sketchup.active_modelgroup,=model.entities.grep(Sketchup::Group)ee=group.entitiesedge,=ee.grep(Sketchup::Edge)#Start the operationmodel.start_operation'Test Text Label',true#Create the Text labelanchor=edge.start.positionvector=Geom::Vector3d.new50,50,0text_label=ee.add_text'Some Text',anchor,vector#Attach the text label to the start of the edgeipath=Sketchup::InstancePath.new[group,edge]text_label.attached_to=[ipath,anchor]#Commit Operationmodel.commit_operationend
Note:
This happens in SU2022, SU2023 and SU2024, on Windows and Mac
If you create the Text label manually, this does not happen
The following script creates a Text Label attached to an Edge within a Group.
Here is the situation before running the script (just a group and an edge)
After running the script. The Arrow Leader is wrongly positioned
However, if you enter the group, the arrow leader is actually well positioned.
Attached is the model and the script. Just run
test_text_label
in the Ruby console.Note:
Bug TextLabel.zip
Bug.Text.Label.within.Group.mp4
The text was updated successfully, but these errors were encountered: