Jump to content

I3erk

Member
  • Posts

    24
  • Joined

  • Last visited

Everything 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. im looking for a script that is similar to that of the dimensions for vectorworks. i want to see how, in the dimension script, that you can overide the dimension text value and input your own text. i can't find a command that would do this thanks
  7. alright. thanks alot. ive started reading the resource guide and everything tongiht. and its going pretty well too. thanks again for evrything
  8. How would i make an IF THEN ELSE command? like for example... If boolean box is checked then display dim text. If boolean box is not checked then display the text written in the following overide field ( overide value: xxxx ).
  9. what i want to have is a tick box that will either make the dim text show or not show.
  10. so it would be Procedure DimmedRect; Var OldStd:Integer; Begin OldStd:=GetPrefInt(71); SetPrefInt(71,0); Rect(0,-pBoxWidth/2,pLineLength,pBoxWidth/2); Moveto(0,pBoxWidth/2); Lineto(pLineLength,pBoxWidth/2); If pTEXT then DimText; SetPrefInt(71,OldStd); End; Run(DimmedRect);
  11. Thanks a lot for the info, and your time too. i greatly appreciate it
  12. hey pat, one other question, how would i add a check box to turn the dim text on or off? kind of like a boolean command
  13. WOW, exactly what i needed. how do you know so much about the script code? and thanks so much. it is greatly appreciated !! :grin:
  14. 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 ?
  15. i got everything working now pretty much as i want it for the time being, except that the dim text is in a fixed place. is there any way that i can have it move as the rectangle gets larger in width.
  16. thanks again pat. ill work on making a custom marker and see how that goes.
  17. 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
  18. Thanks alot. This should get me started pretty well. 1 thing tho, is there a way to show a dimension and not have the dimension ticks showing ? ( like in architecture, they are -/---------DIM---------/- so like, to get rid of those " / " while still having the dimension value show. thanks again
  19. oh, and associated dimensions is turned on, and i use that regularly. but for larger drawings, a plug-in object would make life much easier and save alot of time.
  20. 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.
  21. 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...