If you look in "evaluate-visualize the assembly" you will find your quantities, but I don't know how to insert them in the drawing; Even if you create a bill of materials you can't import the quantities in your details. Alas, it will help me a lot too!
Inserting the assembly BOM directly into the part plan is possible but a bit time-consuming.
Must:
1) open the assembly and drawing of the part,
2) in the drawing of the part from the views palette (tab of the task pane on the right) select the assembly from the drop-down menu at the top,
3) add a view of the assembly outside the part drawing sheet,
4) select the assembly view before the next step,
5) insert the assembly BOM (with a template that would contain only the code and quantity for example),
6) hide the lines of the nomenclature that you don't want to see with a "right-click > hide".
There you go!
Otherwise it should be possible by using a macro in VB.
In addition, this method has the advantage of always being up to date in quantities! Whereas with a macro, it would have to be restarted each time the plan is opened!
It works, I created an assembly model with the properties "code" and "code2", the equation "Dummy" and I can now automatically retrieve my qtys directly in my detail base of the part concerned by inserting [ $PRPSHEET : "AutoQty" ] in the title block.
I have attached the assembly model containing the macros and the necessary equation ... if it can be useful.
Don't forget to add [ $PRPSHEET: "AutoQty" ] in the basemap title for an automation.
BE CAREFUL though: if you use the same part in another assembly since the quantity is written hard in the properties of the part by the last open assembly!!