Expression to extract Start, End coordinates of a line element


 Product(s):MicroStation
 Version(s):10.14.02.01
 Environment:N\A
 Area:Properties
 Subarea:Item Types

Expression to extract Start, End coordinates of a line element

Background

Request from User:
Can you please share Expression values to extract start, end coordinates of line elements

Steps to Accomplish

Following expressions can be used to extract the line coordinates

StartX     :  this.GetElement().Segments[0].Start.X
StartY     :  this.GetElement().Segments[0].Start.Y



EndX      :  this.GetElement().Segments[this.GetElement().Count-1].End.X
EndY      :  this.GetElement().Segments[this.GetElement().Count-1].End.Y

communities.bentley.com/.../Lines.dgn 

See Also

Item Type Expressions

Other language sources

Deutsch

 Original Author:Leonard Jones