Hello, want to get the entities and their locations inside a specific layout, I’m able to achieve this when working with “Model”, but the same can not be accomplished when we try with another layout.
Any snippet for this?
[here is how I’m getting the positions from Model]
foreach (var entity in dxfFile.Entities)
{
if (entity.TypeName != CadEntityTypeName.DIMENSION) continue;
var dimension = (CadDimensionBase) entity;
var MyPositionClass = new MyPositionClass
{
VariableId = variable.Id,
X = dimension.MiddleTextLocation.X,
Y = dimension.MiddleTextLocation.Y
};
}