Message 1 of 11
Section Properties Program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I spend a lot of time making drawings of custom section profiles for engineers. These drawings are usually an HSS or W beam shape with a plate welded on it.
I would like to automate the process with VBA, but it's been a while since I've done any programming.
I would like to know if the following procedures are something that can be easily done using VBA. I have enough experience that I feel comfortable doing this, I just don't want to get started and find out one of the things I thought could be accomplished can't be.
Creating Custom Section Properties Print-Outs
- User will create closed section profile of desired shape.
- User will run VBA program.
Functions
- Region all elements.
- If two or more regions are the result it will perform the ‘Subtract’ command.
- The first selection will select the largest region based on area.
- The second selection will select remaining regions.
- Retrieve centriod information of resulting region and move to origin.
- Select and copy the information from the ‘massprop’ command.
- Create text box on top left corner of Paper Space, paste massprop info.
- Make existing viewport in Paper Space zoom to extents.
- Possibly place C.O.G. block on origin. (not necessary)
Any example code would also be apprieciated.
Thanks in advance.
I would like to automate the process with VBA, but it's been a while since I've done any programming.
I would like to know if the following procedures are something that can be easily done using VBA. I have enough experience that I feel comfortable doing this, I just don't want to get started and find out one of the things I thought could be accomplished can't be.
Creating Custom Section Properties Print-Outs
- User will create closed section profile of desired shape.
- User will run VBA program.
Functions
- Region all elements.
- If two or more regions are the result it will perform the ‘Subtract’ command.
- The first selection will select the largest region based on area.
- The second selection will select remaining regions.
- Retrieve centriod information of resulting region and move to origin.
- Select and copy the information from the ‘massprop’ command.
- Create text box on top left corner of Paper Space, paste massprop info.
- Make existing viewport in Paper Space zoom to extents.
- Possibly place C.O.G. block on origin. (not necessary)
Any example code would also be apprieciated.
Thanks in advance.