yellow sketchCurve objects

yellow sketchCurve objects

Anonymous
Not applicable
1,182 Views
5 Replies
Message 1 of 6

yellow sketchCurve objects

Anonymous
Not applicable

Scenario: UI (user) generated model shows warnings.

 

When I select the yellow geometry (via script/API) the SketchCurve properties return these states:

->isReference()    returns true (why? reference ist lost, see screenshot)

->isValid()            returns true (why?)

 

1) is this behavior "as designed"?

2) how can I detect (through API) whether a specific sketch-curve is yellow (reference is lost) or not?

 

yellow sketch geometry.PNG

 

sketch warning.PNG

0 Likes
Accepted solutions (1)
1,183 Views
5 Replies
Replies (5)
Message 2 of 6

kandennti
Mentor
Mentor
0 Likes
Message 3 of 6

Anonymous
Not applicable

Thank you for your feedback.

 

I´m looking for a way to examine the SketchCurve-objects in an unhealthy Sketch (that I already identified with ->healthState() property). Some SketchCurve-objects might be ok, others are not ok and lost their reference - but which ones?

0 Likes
Message 4 of 6

goyals
Autodesk
Autodesk
Accepted solution

There is another method on SketchEntity to get the referencedEntity if isReferenced is returning True. This method is successful only if referencedEntity is present otherwise it throws exception which is not elegant in my opinion. May be you can write a method and catch the exception thrown and return True/False based on whether exception is thrown or not.



Shyam Goyal
Sr. Software Dev. Manager
Message 5 of 6

Anonymous
Not applicable

Yep, I already tried that - and as a result ran into this:

 

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/problem-with-property-referencedentity-on-...

 

Nevertheless thank you very much for your feedback - because now I definitely know that I did not miss any other possibility to solve my problem. I´m looking forward to the december update with a fix for the current referencedEntity() limitation.

 

 

 

0 Likes
Message 6 of 6

Anonymous
Not applicable

The referencedEntity() bug is fixed with Fusion 360 release 2.0.5044 - so I also have a solution for the problem posted in this thread -> Smiley Happy

0 Likes