Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set GeneralNote.fitted

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
bcoburn3
390 Views, 3 Replies

Set GeneralNote.fitted

Hi,

 

I have a hopefully simple problem:  I can't figure out how to add a GeneralNote to a drawing sheet in VBA without it being "fitted".  That is, The GeneralNote.Fitted property is always true, and I can't set it to be false.

 

Is there a good workaround to this?

 

Thanks,

Ben Coburn

3 REPLIES 3
Message 2 of 4
wayne.brill
in reply to: bcoburn3

Hi Ben,

 

I see that setting the Height or Width could do what you need. Here is a VBA snippet:

 

 

Dim oPt As Point2d
Set oPt = ThisApplication.TransientGeometry.CreatePoint2d(10, 10)

 

Dim onote As GeneralNote

Set onote = oSheet.DrawingNotes.GeneralNotes.AddFitted(oPt, sFormattedText)
'Set onote = oSheet.DrawingNotes.GeneralNotes.AddByRectangle(oPt, oPt2, sFormattedText)

 

onote.height = 10
onote.width = 30

 

Debug.Print onote.Fitted

 

 

 

Thanks,

Wayne

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
bcoburn3
in reply to: wayne.brill

That solves my problem, thanks 🙂

 

Could I ask that creating a note using AddByRectangle() not create a fitted note by default?  I'm not sure what it's for given that.

 

Ben Coburn

Message 4 of 4
wayne.brill
in reply to: bcoburn3

Hi Ben,

 

I logged a ticket with Inventor Engineering for this:

"Wish - have the GeneralNotes.AddByRectangle() not automatically have Fitted = True"

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report