3D annotation/Copy General note problem

3D annotation/Copy General note problem

Mirtchii
Advocate Advocate
1,364 Views
8 Replies
Message 1 of 9

3D annotation/Copy General note problem

Mirtchii
Advocate
Advocate

Hi everyone,

 

Our company is taking advantage of General note to show some File's iProperties attributes(title, part number,..) directly on the screen so we don't have to open iProperties tab.

Actually, this works well and helps us save some time.

But the matter here is the old files. They don't have General note so we have to add it into them manually when we modify them.

If I copy and paste, the link will lose, and i have to link them again. You can see the below picture.

Such a very tedious and time-consuming job.

Is the anyone who faces the same problem like me? And if so, what is your solution?

Really appreciate any help!

Regard,

 

MirtGeneral note.png

0 Likes
Accepted solutions (1)
1,365 Views
8 Replies
Replies (8)
Message 2 of 9

johnsonshiue
Community Manager
Community Manager

Hi! Unfortunately, I am not aware of an out-of-box solution. If you are programming savvy, you might be able to automate the process by using ModelGeneralNoteDefinition Object in iLogic.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 3 of 9

Mirtchii
Advocate
Advocate

Thank you Mr. Johnson,

 

Unfortunately, I'm just a beginner with iLogic not a programming savvy 😞

As I understand, my iLogic code should be able to add a general note into the model screen at top left corner.

Then it will add some iProperties attributes such as Title, subject,etc in to this General note.

Can you guy please help me with some pieces of code?

Then i can configure it further by myself.

Really appreciate any help.

Best Regards,

 

Mirt

0 Likes
Message 4 of 9

Yijiang.Cai
Autodesk
Autodesk
Accepted solution

@Mirtchii , this is doable, and please see the code sample below to add the part number to general note. For other iProperties, you could use the similar idea to add it.

 

    Dim oDoc As Document
    oDoc = ThisApplication.ActiveDocument
    
    Dim oDef As ComponentDefinition
    oDef = oDoc.ComponentDefinition
    
    Dim oModelDef As ModelGeneralNoteDefinition
    oModelDef = oDef.ModelAnnotations.ModelGeneralNotes.CreateDefinition("Part Number: " & "<Property Document='model' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'>PART NUMBER</Property>", True, ScreenQuadrantEnum.kUpperLeftQuadrant)
    
    Call oDef.ModelAnnotations.ModelGeneralNotes.Add(oModelDef)

	 

 

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 5 of 9

Mirtchii
Advocate
Advocate

This is exactly what I need. @Yijiang.Cai 

Really really appreciate your help, I have been working on a huge amount of parts these days, this code can save me a lot of time. 

You made my Friday bright after a whole dark week 😄

0 Likes
Message 6 of 9

Yijiang.Cai
Autodesk
Autodesk

Really glad to know it works fine for you. Your feedback makes me proud today!

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 7 of 9

Anonymous
Not applicable

Cai,

 

I am curious how you can create a new line in the general annotations note using this method. I am able to generate notes but all of my lines stack on top of each other.

 

 

Thanks,

Stephen

0 Likes
Message 8 of 9

Kay_Rethmeier
Advocate
Advocate

Hi River Cai,

 

very nice and interesting. Is it also possible to add a user defined iProperty to a general note?

 

Thanks in advance,

Kay

Cheers
Kay (Principal CAD-Consultant)
0 Likes
Message 9 of 9

Rory_M
Advocate
Advocate

Apologies for bumping an old post but thanks for posting this solution, it's been very helpful to me today!

0 Likes