Just record a macro.
Select the view.
Set the line weight.
It should work.
Then modify the macro as you see fit
Thanks Jacob, tried that. The Component Line Font dialogue box isn't an option when selecting a view of an assembly on the drawing sheet, you have to manually select the component from the FeatureManager Design Tree. The option to select Component Line Font is available when working with a weldment body/part but the recorded macro keeps pointing back to the selected drawing view. It'd probably work if the coding was re-worked to somehow allow selecting of any view prior to activating the macro.
you will need to use IView:RootDrawingComponent.
if the Root Drawing component is an assembly, then you will need to get all the Children using IDrawingComponent:GetChildren
if it is a part, then that is the only component you need to select
Then for each of the DrawingComponents, call
or put the components on a layer and change the layer line weight
or just preselect them using IDrawingComponet:Select and allow the user to set the line weight
you will not have access to the Component Line Font Dialogue box, nor can you really interface with them.
Thanks Jacob, I'll explore those links and see if I can get a working solution.