Faulty (zero) Drawing Dimension Count for all sheets except the active

Faulty (zero) Drawing Dimension Count for all sheets except the active

Maxim-CADman77
Advisor Advisor
743 Views
7 Replies
Message 1 of 8

Faulty (zero) Drawing Dimension Count for all sheets except the active

Maxim-CADman77
Advisor
Advisor

Have just payed attention that API returns faulty (zero) value of the DrawingDimension.Count for those sheets that were no activated (? re-calculated ?) within current inventor session.

Please find sample (multi-sheet) IDW attached.

I use the iLogic-rule like this:

Dim oIDW As DrawingDocument=ThisDoc.Document
Dim MsgBody As String
For Each oSh As Sheet In oIDW.Sheets
	MsgBody &= oSh.Name & " - " & oSh.DrawingDimensions.Count & vbCrLf
Next
MsgBox (MsgBody,,"DrawingDimensions Counts:")

I keep getting "0" for the second sheet unless I activathe the sheet (I then get the expected "1")

 

Inv Docs are 2014 but the issue is also reproducible in 2020.2 (I suffer issues downloading 2020.3)

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
744 Views
7 Replies
Replies (7)
Message 2 of 8

Maxim-CADman77
Advisor
Advisor

Yeah - the issue is reproducible under 2020.3 as well

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 3 of 8

Maxim-CADman77
Advisor
Advisor

Have just reprodused the issue in 2021.0.1 ...

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 4 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

Mentioned iLogic code is tested with Inventor 2021.0.1. It gives count as 2 and 1 respectively in the sheets. To demonstrate the same, a screenshot is prepared and uploaded to below link.

 

https://autode.sk/3gXvxOY

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 8

Maxim-CADman77
Advisor
Advisor

Your recording doesn't contain the crucial moment (IDW opening).

Seems like you've already performed some action after opening (maybe saving or 2nd sheet was activated).

Here is my recording with issue reproduced just after IDW opening -

https://autode.sk/2Wkym4R

PS: Sorry for pasting url as  a code - url-pasting feature on this site  seems got broken.

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 6 of 8

Maxim-CADman77
Advisor
Advisor

Can you confirm the possibility to reproduce issue just after opening?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 7 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

Unfortunately, unable to reproduce the behavior at second time also. For reference, go through below screencast link.

 

https://autode.sk/3fItHkQ

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 8 of 8

Maxim-CADman77
Advisor
Advisor

Now I fell even more puzzled then initially...

ICould you please save the IDW after embedding iLogic code. Then close Inventor and try to reproduce the issue in new session (so that IDW stay completely unchanged from opening till iLogic run)?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes