Hi,
Is there a function to insert a block orthogonally to a polyline at the insertion point as exists for lines (LO)?
same thing to paste an entity...
similarly align a text on a polyline, the TG function places the text on the arc of the insertion point only..
I don't find Scripts that do these functions.
			
									
									
						entities along other ones
Moderator: andrew
- 
				thielaco
 - Active Member
 - Posts: 25
 - Joined: Wed Sep 06, 2023 11:22 am
 - Location: Tours, France
 
- 
				CVH
 - Premier Member
 - Posts: 4959
 - Joined: Wed Sep 27, 2017 4:17 pm
 
Re: entities along other ones
Hi, and welcome to the QCAD forum.
No, you are right.
BI inserts Block References with the given angle in the Option Toolbar, there is no align option.
Adding an auxiliary orthogonal line and re-orient the block after placement is a work around.
Paste along Entity (PE) aligns the copied items but you can not really choose the point of insertion freely.
TG uses only the nearest polyline segment on selection as base.
And that may return odd things when the selection point and the final position are not near each other.
You say 'on the arc' but it is only the center that is retained, for line segments it is the orientation.
The option 'Fit' may act weird too.
From my experience with FlexPainter I know that using all of an arbitrary Polyline as base may not be straightforward.
Things become tricky very near nodes, especially hard to overcome when the curvature is not continuously at the node.
If your polyline is an explosion, an approximation of a spline then the latter is a better option.
This are all open source scripts if you are interested in the specific scripts.
BI aligned to a selected entity should be a simply and feasible adaption.
TG along the polyline itself would require the code to be altered drastically.
Regards,
CVH
			
									
									
						No, you are right.
BI inserts Block References with the given angle in the Option Toolbar, there is no align option.
Adding an auxiliary orthogonal line and re-orient the block after placement is a work around.
Paste along Entity (PE) aligns the copied items but you can not really choose the point of insertion freely.
TG uses only the nearest polyline segment on selection as base.
And that may return odd things when the selection point and the final position are not near each other.
You say 'on the arc' but it is only the center that is retained, for line segments it is the orientation.
The option 'Fit' may act weird too.
From my experience with FlexPainter I know that using all of an arbitrary Polyline as base may not be straightforward.
Things become tricky very near nodes, especially hard to overcome when the curvature is not continuously at the node.
If your polyline is an explosion, an approximation of a spline then the latter is a better option.
This are all open source scripts if you are interested in the specific scripts.
BI aligned to a selected entity should be a simply and feasible adaption.
TG along the polyline itself would require the code to be altered drastically.
Regards,
CVH
- 
				thielaco
 - Active Member
 - Posts: 25
 - Joined: Wed Sep 06, 2023 11:22 am
 - Location: Tours, France
 
Re: entities along other ones
first steps to insert block along entity with relative angle (for my personal use perpendicular to the polyline) but I have problems for picking entity.
https://qcad.org/rsforum/viewtopic.php?f=30&t=10829
I try a mix with my TextAlongP (working good) and InsertBlock...
			
									
									
						https://qcad.org/rsforum/viewtopic.php?f=30&t=10829
I try a mix with my TextAlongP (working good) and InsertBlock...