Code Red > .NET
Setting Civil 3D Pipe Fitting Label Style Error
(1/1)
sdunn:
I am getting an "does not fall within the expected range" when trying to change a fitting label style. The new label styleid is of an existing label style. Has anyone run into this issue?
--- Code - C#: ---if (lab.GetType() == labSource.GetType()){ if (Oid.ObjectClass.DxfName == "AECC_FITTING_LABEL") { lab.StyleId = labSource.StyleId; }}
Jeff_M:
Stacy, I see the same thing and have not found a resolution.
It's Alive!:
Can you use 'is derived from'?
sdunn:
I am not sure how to use "is derived from" in this case. I am checking that the source label is the same type as the selected label before changing its styleid.
Navigation
[0] Message Index
Go to full version