Message 1 of 11
Excell to Cad (2007 Autocad and Excel 2000)
Not applicable
01-23-2009
03:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to automate the insertion of details into AutoCAD based on user
input in a form.
I have recently created new details that cover the most sold options for our
buildings. I got tired of having only a handful of generic details, and
having to modify them the same every time. So now I have 72 options for a
roof eave detail. I have all the details listed in an excel spreadsheet (see
attached). I then created a lisp routine, to where the user only had to
enter in the detail number and pick a certain point in the drawing. I have a
template set up that has circles for the insertion points of the details. So
when the details are inserted, at these points, they are displayed properly
in the sheets.
This works real slick, but then I got to thinking I could make this even
easier. Why insert one detail at a time when I could enter all at once. I
thought if I could create a box that the user would just pick options and
click a button, then have all the correct details inserted. Then I thought
why stop at inserting details. Why not have it also fill in some of the
construction notes. Then I kept thinking of other things that could be
automated by this same form. I realized if I was going to accomplish any of
this, I had to focus on completing one task at a time. So I am going to
focus on inserting details.
I know very little vba and just basic lisp. I have read some tutorials on
vba with regards to having AutoCAD and Excel communicating with each other.
And have gone thru some tutorials dealing with just vba basics. I have also
modified vba, that someone else has created, to meet my needs
I have created the userform with everything that I need, then I got stuck.
I'm drawing a blank as to where to start with the code.
I know that after the user has picked all the options, they will then click
the execute button. From there vba needs to go to the excel spreadsheet,
with all the details listed, and sort through to find the right detail
number. Then either something has to create a list of all the right details
or have it insert one at a time.
Can this even be done with what I have set up far, or do I need to go a
different route.
I know I need to go thru some more tutorials. Anybody know of ones that are
geared toward what I am trying to accomplish?
Thanks for any help.
input in a form.
I have recently created new details that cover the most sold options for our
buildings. I got tired of having only a handful of generic details, and
having to modify them the same every time. So now I have 72 options for a
roof eave detail. I have all the details listed in an excel spreadsheet (see
attached). I then created a lisp routine, to where the user only had to
enter in the detail number and pick a certain point in the drawing. I have a
template set up that has circles for the insertion points of the details. So
when the details are inserted, at these points, they are displayed properly
in the sheets.
This works real slick, but then I got to thinking I could make this even
easier. Why insert one detail at a time when I could enter all at once. I
thought if I could create a box that the user would just pick options and
click a button, then have all the correct details inserted. Then I thought
why stop at inserting details. Why not have it also fill in some of the
construction notes. Then I kept thinking of other things that could be
automated by this same form. I realized if I was going to accomplish any of
this, I had to focus on completing one task at a time. So I am going to
focus on inserting details.
I know very little vba and just basic lisp. I have read some tutorials on
vba with regards to having AutoCAD and Excel communicating with each other.
And have gone thru some tutorials dealing with just vba basics. I have also
modified vba, that someone else has created, to meet my needs
I have created the userform with everything that I need, then I got stuck.
I'm drawing a blank as to where to start with the code.
I know that after the user has picked all the options, they will then click
the execute button. From there vba needs to go to the excel spreadsheet,
with all the details listed, and sort through to find the right detail
number. Then either something has to create a list of all the right details
or have it insert one at a time.
Can this even be done with what I have set up far, or do I need to go a
different route.
I know I need to go thru some more tutorials. Anybody know of ones that are
geared toward what I am trying to accomplish?
Thanks for any help.