Jump to content

beanus

Member
  • Posts

    378
  • Joined

  • Last visited

Posts posted by beanus

  1. Hi Pat, I'm trying to create a tool which measures between two existing points on a drawing and then draws a simple 2d door or window. I quite often have to trace over old drawings usually in btmp format. In an old cad package I used in the past (Truecad) I managed write a simple piece of code that would enable me to click on two points and a simple 2d door or window would be drawn between the two points, I think the programing language was basic.

  2. 20 hours ago, Pat Stanford said:

    What are you going to do with the data? Do you just need to know what the distance is (One time display?) or need to place that distance in the drawing somehow?

     

    If you just want a "dialog box" to come up and show you the distance then a script will be a better and easier option.

     

    In my opinion, Marionette is the best option for programmatically creating objects in a drawing. Traditional scripts are a better option in most cases for modifying objects that already exist. Examples would be changing classes, fonts, colors, turning on options (Like Multiple Labels in Space objects) and even changing text blocks (company name changes)

     

    The following script will display a dialog box showing the distance between the first two  selected locus points in a file.  It does not check that the selected points are loci and will error if run with other type objects selected. If you need a more robust version it would not take much to check the object types and fail gracefully.

     

    
    Procedure LocLocDistance;
    
    Var	H1,H2:Handle;
    	X1,Y1,X2,Y2,Dist:Real;
    
    Begin
    	H1:=FSActLayer;
    	H2:=NextSObj(H1);
    	GetLocPt(H1,X1,Y1);
    	GetLocPt(H2,X2,Y2);
    	Dist:=Distance(X1,Y1,X2,Y2);
    	AlrtDialog(Concat('Distance is: ',Dist));
    End;
    
    Run(LocLocDistance);

     

     

  3. I've given up with the new stair tool it cannot produce even standard UK configurations, don't know who thought up the new stair tool they obviously don't have to use it. Stick to the custom stair tool you can produce most configurations even for stairs that were built years ago and don't comply with modern standards.

  4. has anyone seen the free CAD software offered by ACCA, you get the software free and only pay for prints. Although it's not suitable for the type of drawings I produce it has some very good points. It links directly to estimating software, you can create walls of variable thicknesses and still insert doors/windows, the stair tool is excellent especially when it comes to modelling old existing stairs, inserting roofs and dormers is easy, inserting rainwater pipes is very intuitive and many other points. Also above all it didn't crash once. If Vectorworks could incorporate some of these features it would be an excellent program.

×
×
  • Create New...