I have a part with more than 1 configuration, and I have a structural member in that part.
I want to set the angle for a given configuration scope (this/all/specific), just like one can do with dimensions using IDimension.SetValue3.
So I'm basically looking for a method like IDimension.SetValue3, but which sets the angle of a structural member instead. Does such a method exist? And if no such method exists, how else can I achieve this?
What I currently have is this:
1. I take the IStructuralMemberFeatureData and call AccessSelections.
2. If the weldment has no groups, I use the IStructuralMemberFeatureData.RotationAngle setter to set my value. If it has groups, I go through all groups and use IStructuralMemberGroup.RotationAngle setter instead.
3. I call IStructuralMemberFeatureData.ModifyDefinition and finally IModelDoc.EditAssembly (on root model doc).
It does set the angle, but I have no control over the scope using that method. It always uses the current scope, i.e. the one that is selected here:
So is there a method that allows me to set the scope manually before going through the steps above? If there is, that would solve my problem as well.
Any other ideas or hints?
- Board index CAD SolidWorks API
- Search
-
- It is currently Wed Jan 29, 2025 11:53 pm
- All times are UTC-05:00
set weldment angle for given configuration scope
Programming and macros
set weldment angle for given configuration scope
- Quote
- 0 login to like this post
Unread post by Kjara »
Jump to
- Welcome New Members
- ↳ Welcome
- ↳ Forum Rules
- CAD
- ↳ CAD Agnostic
- ↳ SolidWorks
- ↳ How To Questions
- ↳ SW General
- ↳ SolidWorks FAQ
- ↳ API
- ↳ Macro Library
- ↳ SolidWorks PDM
- ↳ 2D Drawings
- ↳ Routing-Electrical-Piping
- ↳ Surfacing
- ↳ Rendering - Visualize - Photoview
- ↳ SW Simulation
- ↳ SW Motion Analysis
- ↳ Enhancement Requests
- ↳ Solid Edge
- ↳ NX
- ↳ Onshape
- ↳ Creo
- ↳ Inventor
- ↳ Fusion 360
- ↳ KeyCreator
- ↳ Catia and 3DX
- ↳ IronCAD (CAXA)
- ↳ Shapr3D
- ↳ CAD Admin (Install, PDM, etc)
- ↳ subD and Mesh
- ↳ Hardware
- ↳ Misc CAD
- ↳ Draftsight
- Other Technology
- ↳ Computer Aided Engineering
- ↳ Rendering and Motion
- ↳ 3D Scan
- ↳ General Engineering and Design
- ↳ AI and Related Tech
- Manufacturing
- ↳ 3D Print
- ↳ CAM
- ↳ PowerMILL
- ↳ Molding, Casting, Powder Metal
- ↳ Robotics
- Board Business
- ↳ General Biz and Announcements
- ↳ Suggestions
- ↳ What's Wrong?
- ↳ What's New
- ↳ Events
- ↳ Media and Advertising
- Off Topic
- ↳ Kitty Dump
- ↳ Job Listings
- ↳ For Sale and Want To Buy