Quantcast
Channel: MicroStation
Viewing all articles
Browse latest Browse all 54628

Forum Post: RE: Point String Group

$
0
0
Hi Daniel, Point Strings are not used often and I have admit I am surprised Drop element tool is not able to handle this element type. I am interested in if somebody else will share the workflow how to drop the element. My idea is not the solution, but a workaround: It's possible to use VBA to create line string from point string vertices. The result is a bit ugly as it's visible how the point string was constructed (in my opinion the rows should be separate points strings, not all in one), but at least line string is better suported element and it can be modified easily. VBA code is quite simple: Public Sub ProcessPointString() Dim pntstr As PointStringElement Set pntstr = ActiveModelReference.GetElementByID(DLongFromLong(17543)) Dim vertices() As Point3d vertices = pntstr.GetVertices Dim linestr As LineElement Set linestr = CreateLineElement1(Nothing, vertices) ActiveModelReference.AddElement linestr End Sub ... where 17543 is element id of the point string. This id is displayed e.g. in old element information dialog (key-in analyze element ). With regards, Jan

Viewing all articles
Browse latest Browse all 54628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>