LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: Positions of objects in Block Diagram

Solved!
Go to solution

@d.w.b wrote:

Why is InPlaceElementStructure.Position=InPlaceElementStructure.Diagram.Position rather than (30,10) more?

 

Why is FlatSequence.Position=TopLevelDiagram.Position when FlatSequence is not in the upper-left corner of the Block Diagram (either relative to the origin dot or to the visible scrolled location)?


I'm guessing the answer to these two questions is the same. The position of the top level diagram is the position of the top-left object, relative to the origin of the diagram. It looks like the same applies to child diagrams (in this case the diagram of the FSS frame) and that it also uses the top level diagram coordinates.

 


@d.w.b wrote:

 

Why is FlatSequenceFrame.Position=(0,0) versus (6,10) or FlatSequence.Position + (6,10)? It is senseless for FlatSequenceFrame.Position to be relative to itself.


The FlatSequenceFrame class does not inherit from GObject, so the cast fails and you get an error, which causes the property read to fail and return the default value. You can see that the boolean indicator shows that there is an error.


___________________
Try to take over the world!
0 Kudos
Message 11 of 11
(236 Views)