PDA

View Full Version : Measure or Divide in VB



yokel
18-03-2005, 05:57 AM
This one may be a bit complicated for VBA for beginners but it’s probably just a indication I have overstretched myself on this project.

My question is, VBA doesn’t seem to have a measure or divide command built into its object model. How would I perform a equivalent action in code?

Also any advice on the project I am doing is welcome.

I am trying to write a program that will draw slope symbols scaled and orientated perpendicular between two splined Polylines.

To do this manually I create a block of a slope tadpole and use measure or divide to apply the symbol along the top or bottom slope line. This is fine for a uniform slope but if it is tapering I have to scale each block individually so it tapers as well.

Any ideas of a way of programming this simply? Attached is my DVB file, I didn’t get far before I got flummoxed. I use AutoCAD 2000 to 2005.

Cheers

Eddie
20-03-2005, 07:23 PM
8) Have a look at this it may help you resolve the measure/divide dilema.

http://groups-beta.google.com/group/autodesk.autocad.customization.vba/browse_frm/thread/8236fdebf606d01c/a1fbcccd296433b5?q=measure+on+block+insertion#a1fb cccd296433b5