Hi All,
Can someone get me started on adding a line to the database using surveyors units (preferably in VB).
Command: line
Specify first point: 0,0
Specify next point or [Undo]: @104.88'<N57d59'45"W
I know how to add normal Point3D line:
Dim acLine As Line = New Line(New Point3d(5, 5, 0), New Point3d(12, 3, 0))
But not sure how to do it with an angled line.
Thanks!
Solved! Go to Solution.
Solved by Hallex. Go to Solution.
I dont think you can, you'd have to calculate the second point yourself from the start point, range and bearing.
Possibly you could get away with using Document.SendStringToExecute() and pass your commandline entries.
Why don't you try posting what you've got so far, so that we can tell what part you're hung up on. The trigonometry is pretty simple.
Thanks for the info all! I have been sidetracked onto another task for the next few days, so I will jump back to this problem once I have completed the other task and check out what you have all posted!
Chief... unfortuantely I don't have anything. I am still very green at this .NET stuff and so I usually look for samples in the SDK or in the .NET developers guide or in the forums. I try tailoring those samples to fit my needs. In this case, I could not find ANYTHING so I don't even have a start! 😞
Thanks again!
I think it could be done using awesome class
CommandLine.vb written by Tony Tanzillo
I just don't know about surveyor rules,
I mean how to define angles for all quadrants
Than I could be able to parse D-M-S format
to decimals using Regular expression and
pull this value into the command line using
class I have mentioned above
See picture and show me how to
draw it right instead
Hallex,
Thank you SO much for this! This is EXCELLENT!
I need to make a few adjustments here and there. Such as allowing the directions to be entered without an angle in case the user needs to enter a true North direction etc, but this it GREAT!
Thanks again for your help!
Glad to help
If you would be want to share your final
solution with our community
it would be interesting for somebody else...
Cheers 🙂
~'J'~
I am working on updating it to work with polylines right now, so as soon as I have it finished I will defiantely post it!
Thanks again!