C360_OnPublishDrawing Error when creating 2d Point

C360_OnPublishDrawing Error when creating 2d Point

kyle72833
Explorer Explorer
316 Views
1 Reply
Message 1 of 2

C360_OnPublishDrawing Error when creating 2d Point

kyle72833
Explorer
Explorer

I am attempting to create a break in a drawing view using Ilogic and the C360_OnPublishDrawing rule.  Everything is working perfectly offline but when I upload it to C360 and attempt to export a PDF it generates an unspecified error.  I have narrowed the problem down to this piece of code:

 

Dim startPt = ThisApplication.TransientGeometry.CreatePoint2d(0, cMidStart)
Dim endPt = ThisApplication.TransientGeometry.CreatePoint2d(0, cMidEnd)
view.BreakOperations.Add(BreakOrientationEnum.kVerticalBreakOrientation, startPt, endPt,BreakStyleEnum.kStructuralBreakStyle)

 

And in particular it cannot seem to create the 2d start and end points in C360.  Is there a different command that has to be used for C360 for creating 2d points?

 

Any help is appreciated.

0 Likes
Accepted solutions (1)
317 Views
1 Reply
Reply (1)
Message 2 of 2

MjDeck
Autodesk
Autodesk
Accepted solution

ThisApplication is not available on C360.

To write rules that are compatible with C360, use ThisServer instead. That will also work on Inventor.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes