How to Join - break lines as single continuous parallel to main lines? Tried that functionality with below keyin's. This functionality was existing in V8i now intension is to implement same in MicroStation Connect edition.
For making parallel lines used InteropUtility.SetCopyParallel(Convert.ToInt32(content), ref message); functionality then break main lines were joined with below keyin but
"choose last; drop curve; selview 1;selview 1;choose none"
"create chain automatic;%d;%d;selview 1"
Please suggest any affective way of implementing both copy parallel along with join if it has break lines as single continuous line.
Manjula Kamarajugadda said:For making parallel lines usedInteropUtility.SetCopyParallel(Convert.ToInt32(content), ref message)choose last; drop curve; selview 1;selview 1;choose none
InteropUtility.SetCopyParallel(Convert.ToInt32(content), ref message)
choose last; drop curve; selview 1;selview 1;choose none
It's not clear whether you want to use
Your tags are also confusing: you mention CONNECT and V8i. Which is it?
You tagged your post with C#. If it is a question about programming, then post to the MicroStation Programming Forum.
Regards, Jon Summers LA Solutions
Hi Jon,
Thanks for your reply.
We have implemented a functionality similar to copy parallel in V8i using MDL. Client has migrated from V8i to Connect Edition. We tried to mimic the same functionality in Connect Edition using C#, but we were not able to achieve the 100% working client is expecting. In Connect Edition we tried to achieve using "InteropUtility.SetCopyParallel(Convert.ToInt32(content), ref message);". By using this we were able to achieve copy parallel but the newly created lines are disconnected so we tried using keyin's in separate click:
Client wanted the functionality to be achieved in same click. This forum link is provided by Bentley Community and request you to forward this ticket to the programming community if possible.
Manjula Kamarajugadda said:This forum link is provided by Bentley Community and request you to forward this ticket to the programming community
I have no idea what you mean by 'this forum link' or 'ticket'. Nor can I respond to your request to 'forward this ticket'. I am not part of Bentley Systems and have no power in Be Communities to forward anything.
Manjula Kamarajugadda said:We have implemented a functionality similar to copy parallel in V8i using MDL. We tried to mimic the same functionality in Connect Edition using C#
Post a code sample of MDL that worked in V8i.
What doesn't work using C# in CONNECT?
Hi Manjula,
Manjula Kamarajugadda said:How to Join - break lines as single continuous parallel to main lines?
I agree with Jon your question is not quite clear, e.g. what you mean by "break lines as single continuous parallel to main lines". To share e.g. screen capture or (better) DGN file would help to explain the situation.
Manjula Kamarajugadda said:This functionality was existing in V8i now intension is to implement same in MicroStation Connect edition.
What is the functionality you mention? Is it specific user tool (existing in V8i, not existing in CE) or function / class / method (missing now in CE API)?
Manjula Kamarajugadda said:For making parallel lines used InteropUtility.SetCopyParallel(Convert.ToInt32(content), ref message);
Where InteropUtility comes from? From what assembly and API? It does not looks like anything from standard MicroStation C# API.
Manjula Kamarajugadda said:Please suggest any affective way of implementing both copy parallel along with join if it has break lines as single continuous line.
The standard approach is to implement own command class. Because it looks like the tool starts with element selection, DgnElementSetTool class is where to start (available both in C++ and C# API). MicroStation CE API provides powerfull "linear geometry engine", so it should be simple to pass all lines as curve primitives to this engine and let it to create line element for you.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thanks for your reply, We don't have MDL source code
Manjula Kamarajugadda said:We don't have MDL source code
Because you do not share any example, nobody can say if it can be achieved by CE tools only, but I guess when no original code is available, you must develop the tool from scratch (which is not necessarily bad, because CE API is very different and often it's better to rewrite old tools to use full power of CE platform).
Hi Jan, Sorry for the later reply. We have given few customized tools to a client in V8i, now have migrated those to CE as per client requirement. We were not part when the tools were developed in V8i. Please find the functionality in brief, user selects a landbase feature (line or linstring or arc) in the dgn in the button provided and the requirement is to draw a line in offset (user provided) to the selected landbase feature. user will continuously select lines, when the 2nd landbase feature is selected the newly offset line should also extend and finally it should be a single linestring. We don't have the source code of this. We used keyins move parallel to achieve it in CE but we are not able to connect the offset lines to a single linestring. I think have explained it bit clearly. Thank You.
I tired to click the above Forum and it redirected me to this page.