wire frame creation with VBA/RULES/MACRO

wire frame creation with VBA/RULES/MACRO

Anonymous
Not applicable
673 Views
4 Replies
Message 1 of 5

wire frame creation with VBA/RULES/MACRO

Anonymous
Not applicable

Hello!!

 

What I am trying to accomplish is basically an automated system that will allow users to ONLY input information and the program will 'take care of the rest'. Does that make sense? 

 

Basically what I'm trying to accomplish is an automated wire frame creation that would then allow the user to pick a profile and create a frame generated part.

 

I will try and write out an example of how I envision the program to work now...

 

*Run rule/Macro*

 

- window pops up - 

 

how many units vertically?  (user inputs X) - enter

how many units horizontally? (user inputs X) - enter

 

height overall? (user inputs X-feet Y-inches) - enter    = A

width overall? (user inputs X-feet Y-inches) - enter     = B

 

1st level height? (user inputs XXXX) - enter {IF user enters >1 for 'how many units vertically?'}

2nd level height? (user inputs XXXX) - enter {IF user enters >=3 for 'how many units vertically?'}

- Would continue the amount of times {i-1} the user input answered for 'how many units vertically'

1st unit width? (user inputs XXXX) - enter {IF users enters >1 for 'how many units horizontally?'}

2nd unit width? (user inputs XXXX) - enter

3rd unit width? (user inputs XXXX) - enter

- Would continue the amount of times {i-1} the user input answered for 'how many units horizontally' 

 

--------------------------

|            |   |            |

|            |   |            |

|            |   |            |

--------------------------

|            |   |            |

|            |   |            |

|            |   |            |

X------------------------                    (where X = origin)        

 

 

above (poor representation) would be the outcome of the following:

 

how many units vertically?  (user inputs 2) - enter

how many units horizontally? (user inputs 3) - enter

 

height overall? (user inputs 10 feet 0 inches) - enter

width overall? (user inputs 30 feet 0 inches) - enter

 

1st level height? (user inputs 6 feet 0 inches) - enter

1st unit width? (user inputs 12 feet 6 inches) - enter

2nd unit width? (user inputs 5 feet 0 inches) - enter

3rd unit width? [program would know that this unit is (12 feet 6 inches)]

 

- at this point I would like to name all of the lines (if possible):

(example)

from-d0 to VERTICAL_1 [from origin in y direction] (0,0) to (0, A)               A = height overall 

 

This is part 1 of what I am trying to accomplish.... 

 

once the wire frame is created then the tricky part comes in to play and I would like to be able to create frame generated parts linked to these dimensions using profiles from a library that a user would be able to choose from a drop down menu.

 

Any and all help is very greatly appreciated.

Thank you, 

Dylan

0 Likes
674 Views
4 Replies
Replies (4)
Message 2 of 5

Curtis_Waguespack
Consultant
Consultant

Hi DStewartRG3E7,

 

Is there a reason it must be a wireframe sketch rather than a 3d Solid?

 

http://inventortrenches.blogspot.com/2013/08/use-3d-solid-edges-for-frame-generator.html

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable

I suppose not. 

 

The reason I would like to use a wire frame is due to the fact that our profiles have insertion points. 

 

We do this so that the multiple parts that make up a horizontal or vertical assembly all have a point of reference. 

 

From that point, we could then place it on the wire frame. 

 

I'm all ears to other suggestions. 

 

But the absolute MUST is that we are able to automate an elevation from frame generated assemblies. 

0 Likes
Message 4 of 5

Anonymous
Not applicable

Also, on our verticals, some fastener holes will need to be drilled for placement of sills, intermediate horizontal and heads. 

 

I was thinking with the wire frame creation process, the user inputs the dimensions of 'ROW 2' and then later on in the code we could put the necessary pattern at the exact location automatically. 

 

 

0 Likes
Message 5 of 5

Anonymous
Not applicable

The best solution for you, is to change to SolidWorks. Frames are more quick to do, bill of materials too and all is more easy. I use Inventor too as a professional and i love it of course, but for frames, let's forget Inventor.

 

Best Regards

 

Diego

0 Likes