Is it possible to constrain the location of one object based on the intersection of two other objects (for example, force the midpoint of one line to be at the intersection of two other lines?)
The reason I want to do this is specific to Civil 3D but I figured I might get the most attention for my post on this board and it might be more likely that someone who knows the answer would see it here.
Thanks in advance for any help you can give.
Solved! Go to Solution.
Care to elaborate, nestly?
I'm aware that I could constrain two lines such that the midpoint of one is always at the endpoint of another, but I'm talking about setting the midpoint of one at the intersection of two other lines. I read the descriptions of all of the GEOMCONSTRAINT methods and couldn't figure out how to make it work.
Is the "intersection of two lines" always at the same point? (Or will it change as the geometry changes?)
I'm guessing it changes, in which case I don't think there is a constraint that will do what you want (as you seem to have already discovered).
It would be helpful to all who might want to help you if you posted a simple DWG illustrating what you are trying to do and what you have already tried.
No, it's not always the same point, otherwise I could just use snaps or coincident restraints.
It's OK, I think I know enough now to determine that I'll need to write something custom to do what I want...just wanted to see if I was missing something.
See if this attached example DWG does what you are looking for.
I used COINCIDENT, selected midpoint of green line, then used Object option for one of the red lines, then repeated it for the other red line.
Edit: Sorry. Attachment isn't cooperating. I think you'll be able to figure it out from the description.
Sorry, I still couldn't make it work. What you're describing will "work" if the two lines are ending at a common point, but then it still won't let me do what I want to do.
Hopefully this attachment will work.
The procedure is actually backward from what I wrote before:
Use COINCIDENT, use Object option to select one of the intersecting red lines, followed by midpoint of the green line, then repeat with the other intersecting red line.
Is that how you want things to behave?
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register