Hi!
I’m trying to add dimension lines a plate model using the API.
I want the dimensin line to be placed next to my model and not directly on top of.
My code looks like this:
var dim = new DimensionLinear(new List<Point3d> { points[7], points[0] }, Plane.XY);
model.AddLinearDimension(dim, true);
And gives the following result:
Can i somehow translate the dimension line placement so it looks like this?
I haven’t been able to find another function for this in the documentation but i could be wrong?
I guess i could use other reference points in the DimensionLinear function but then they won’t be connected to the plate corner points.
Any idea how to solve this?
Best regards
Kristian
Hi @Kristiandl
For the time being, you will need to perform an offset with some code.
Which settings you would like to see in the annotation constructor?
Blockquote
For the time being, you will need to perform an offset with some code.
Does this mean to manipulate the struxml or can i offset it using the API?
Blockquote
Which settings you would like to see in the annotation constructor?
I guess the settings from the “Dimension settings” would be nice to have:
But the offset (c) is the most important to me at least
oki doki!
it makes totally sense to implement the most important settings as specified in the GUI. However, I think that the API is only setting the position and it does not override the default values.
I have opened a ticket for our team. We will get in touch when solved
opened 07:34AM - 07 Oct 24 UTC
request:user
type:improvement
https://femdesign-api.discourse.group/t/adding-dimension-lines-with-an-offset/35… 9/3?u=marcopelle
Does this mean to manipulate the struxml or can i offset it using the API?
You can do an “offset” of the input points
Allright, thanks for taking the time and looking into this!
I will offset the points as a temporary solution then.
1 Like