Code Red > VB(A)

help with my code

<< < (2/3) > >>

sbattina:
im sorry tim. I cant do that tonight & tommorow. I wont be on Campus tommorow :o(... Shall do it first thing on Friday. :o|

Trev:
I'm not quite sure I understand your objective.
Correct me if I'm wrong.
Would you like to place the tree at the elevation of the nearest contour line to the base of the tree?
(this method would have to search the dwg for contour lines (eg: filtering for polylines on a particular layer) compare co-ordinates  then select the nearest to obtain the elevation height. (quite complex)
Or would you like to select a contour line to obtain the elevation height to place the tree. This would take 2 selections 1 for the tree location the 2nd the contour line. (much easier)

One suggestion (maybe I don't know your dwg process) You use your vba program to open your drawing, wouldn't it be more likely that you would all ready have your drawing open?
If thats a normal thing to do then you may wish to add a filter to your open file dialog to only show dwg files.




--- Quote ---but right now I've got to get back to work.
--- End quote ---

Yeah get back to work ya git!  :P
Meanwhile I'm going to get some sleep (it's 3am here.   :horror:  :crazy: )

sbattina:
yes Trev,
It is the "quite complex" one that Im trying to do. I have to make the centers of the boxes get elevated to the corresponding contour line.
Another option would be to change the entire site into a surface..i dont know how the hell thats going to happen.
But I am quite surprised  you understood what I mean...I told this to my friend here and she is blinking...hehe

everyone who has understood what I am talking about....jump right in..

i did look into the option of having the drawing open before hand. Thats how I started off. But I switched to this because I could use this on other drawing files too....

Trev:

--- Quote --- did look into the option of having the drawing open before hand. Thats how I started off. But I switched to this because I could use this on other drawing files too....
--- End quote ---

If you use it on many files, what I would probably do is to create a toolbar/menu option so after opening the drawing you simply select the toolbar it will load your program & run it on the current drawing.
Thats just an option though.
I'll have a bit of a look to see if I can do a search for closest contour point, if that can be done on a  drawing without taking a long time in the search process it is a good option. However the bigger the drawing the longer it would take (particularly with polylines) I'll see what I can do.

Anonymous:
alrighty.........
you mean like an array  of contours and then it would search for the closest.
hmmm...closest? nearest X or Y. I am going to try and work on that a bit ....it sounds like a great idea.
but yah..I guess it would take a while to search ...


Thanks a ton
--- Quote ---I'll have a bit of a look to see if I can do a search for closest contour point, if that can be done on a drawing without taking a long time in the search process it is a good option.
--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version