Unknown error when creating linear dimensions

Unknown error when creating linear dimensions

chaillaudpaul
Explorer Explorer
177 Views
1 Reply
Message 1 of 2

Unknown error when creating linear dimensions

chaillaudpaul
Explorer
Explorer

Hello,

 

Im currently working on putting linear dimensions on length and width for any part on a drawing my method seems correct but when it comes to actually adding the linear dimensions it crashes with "unspecified error" (0x80004005 (E_FAIL)),

The line causing that is:

            sheet.DrawingDimensions.GeneralDimensions.AddLinear(
                dimWidthPlacementPoint,
                geomIntentMinX,
                geomIntentMaxX,
                DimensionTypeEnum.kHorizontalDimensionType)

I checked and all parameters seem right yet i get this random error, any clues?

0 Likes
178 Views
1 Reply
Reply (1)
Message 2 of 2

Ralf_Krieg
Advisor
Advisor

Hello

 

If we don't know how you create your intents, the placementpoint and so on, what do you expect we should say?

Does your code always fail on the same dimension or does it work once, then you delete it and it fails on the second try?


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes