Jump to content

I3erk

Member
  • Posts

    24
  • Joined

  • Last visited

Posts posted by I3erk

  1. I want to know what script or code i can use in order to make a rectangle similar to that of the " basic rectangle tool".

    this basic rectangle tool creates a rectangle using the one point (corner) and its opposite point (corner).

    so i would like to know how to write a code that can create a rectangle in this way.

  2. is there any way to trim 3d objects while they are grouped together.

    for example if i want to trim a group to have a 45 degree angle on one corner, how would i do this if they are in 3d and if they are grouped together (there are too many objects and too time consuming to do individually)

  3. 2 things, do i have to create a leader field for the SetDimText, and the other was if you can look at the code so far and see it if all works. ( it doesn't say that there is an error, but when i run it, it doesn't show a leader field.

    Procedure DimmedRect;
    Var OldStd:Integer;
            DIMS:Integer;
    
    Begin
    OldStd:=GetPrefInt(22);
    SetPrefInt(22,0);
    Rect(0,-pBoxWidth/2,pLineLength,pBoxWidth/2);
    
    
    IF pTEXT then
       		Begin
    		Moveto(0,pBoxWidth/2);
    		Lineto(pLineLength,pBoxWidth/2);
    		DimText; 
    
       		End
    ELSE 
    	Begin
    		SetDimText(LNewObj,'12');
    	End;
    
    SetPrefInt(22,OldStd);
    
    
    End;

    but i think ill try and get the single tolerance command to work. it seems like it will be the best command to use

  4. one other thing, for the SetDimText, what is the handle and the leadertrailer and what do they do? because the explanation VW gives isnt very clear to what should be placed into this command.

    for example: VW says this..

    Declaration:

    PROCEDURE SetDimText(h :HANDLE; leaderTrailer :STRING);

    Description:

    Procedure SetDimText will set the dimension text of the referenced dimension to the specified value.

    The maximum length for dimension text is 60 characters. The first 30 characters of the specified dimension text string will be displayed in the primary dimension string; the remaining characters will be displayed in the secondary dimension string, if it exists.

    Parameters:

    h Handle to a dimension object.

    leaderTrailer Dimension text string.

    Example:

    SetDimText(dimHandle,'Length varies');

    can you help me clear up what this means exactly?

    thanks alot :grin:

  5. thanks, but what if i just wanted to be able to overide the text,

    like as an example, for dimensions, in the object info palette you can select to show the dim value or not, and you can overide it by typing into the leader text field and so on.

    what kind of a command would this be ? like would it be under text or something different?, because i cant seem to find a command that would let me insert something i have written in my text parameter 'text field'

    so like, is there such a command that will let me just insert any text i want in the same place as the dimension text would be ?and where would i be able to write in this new text ( in object info palette )

  6. is there a way to place the dim line overlapping the top line of the rectangle instead of right thought the middle. that way the dim line will always move with the object and the dim text will always be in the same relative location above the rectangle.

    cuz right now the dim line is thought the middle, but the text is set at a certain distance away from the dim line. as the rectangle's width gets larger, the dim line still is thought the middle of the rectangle but the dim text remains at that same distance away from the dim line, so instead of the text being above the rectangle, its ends up inside it.

    so what i am wondering is if there is a way to make sure the text stays above (and outside) the rectangle, even when the width increases or decreases ?

  7. Is there any way to have a dimension line without ticks/slashes/arrows (like having the slashes or ticks completely removed or just not shown).

    so like from this : -/-----DIM-----/- to ------DIM------

    also, if there is a script command that can remove or hide the dim slashes it would help alot

  8. Hey Pat, thanks.

    what i am trying to do in the end is to have like beams, joists and such, with the dimension attached to it and showing without having to draw and attach a dimension line to the object.

    having a plug-in object like this will make it much easier since the drawings and plans could have tons of wall/floor parts in the same area. It would be a pain in the ass to have to draw all the dimensions lines for each object.

    so thats pretty much why i would need something like this.

  9. I am trying to either find or create a script that will allow me to create an object (like a rectangle) and have the long dimension integrated into the object (placed right above it).

    Also, i need the dimension value to change as the objects length changes too.

    so if anyone can help me start off with writing this script (never written one before), or if they know if something similar exists already it would be a big help.

×
×
  • Create New...