Question

I am trying to set up some code that will have align a sub-shape in a group to a guide line on drop, but I only want to align to horizontal guides, not vertical. As yet I have not found a good way to programmatically determine what direction a guide is, only how to add guides.

So is there some property I've not found that will tell me the direction of the line? Even the guide's shapesheet doesn't seem to have anything to tell me this.

Was it helpful?

Solution

You can check the Angle cell. 0 or 180 is horizontal and 90 or 270 is vertical.

A guide is just a Shape with an InfiniteLine geometry row type and a point guide has no geometry at all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top