Jump to content

Assembly

Member
  • Posts

    430
  • Joined

  • Last visited

Posts posted by Assembly

  1. I thought this would create a VP on a sheet layer and turn on all the Layers and Classes. But I can't get the layers or classes to turn on?.

    The result is a new viewport on the layer I name, but the view port is a red box with cross hatch, I click on the VP and none of the layers or classes are turned on.

    I have run with testing procedure that output the layer and classnames to a file. The loops are passing correctly.

    PROCEDURE NewVPWithAllOn(SheetLayerName:String);

    Const

    TurnOn=1;

    TurnOff=-1;

    MakeGray=2;

    DesignLayer=1;

    SheetLayer=2;

    VAR

    LayerHandle:Handle;

    ClassName:String;

    Result:Boolean;

    iTemp:Integer;

    hVP:HANDLE;

    BEGIN;

    LayerHandle:=CreateLayer(Concat(SheetLayerName,'-Sheet'),SheetLayer);

    hVP:=CreateVP(LayerHandle);

    LayerHandle:=fLayer;

    While LayerHandle<>Nil Do

    BEGIN;

    Result:=SetVPLayerVisibility(hVP,layerHandle,TurnOn);

    layerHandle:=NextLayer(layerHandle);

    END;

    For iTemp:= 1 to ClassNum DO

    BEGIN;

    Result:=SetVPClassVisibility(hVP,ClassList(iTemp),1);

    END;

    END;

  2. Does anyone have any pointers on the Texture functions.

    I have a number of objects being created through a Menu Script that are assigned to a class with an image map texture assigned.

    Objects that are simple rectangles extruded render correctly. Objects which are extruded polylines do not render correct. When I click on the object in the drawing, as soon as it becomes selected, the texture map renders. Thus it would seem that the texture mapping from the class is in order but a regeneration of the object is required to get the mapping to work. Not sure how I can get this regen to happen in script.

    Also all the objects are created in the same way. They are extruded on Z axis at the origin then are rotated and moved into location. However when the object renders the orientation of the map is different on every object?.

    Can anyone point me to any good documentation on the render functions or have any good knowledge to share.

    Can anyone expand on how to use this:

    PROCEDURE SetTexMapInt(

    h :HANDLE;

    partID :LONGINT;

    selector :INTEGER;

    value :INTEGER);

    I think this is the texture Selectors but not sure what the PartID or the Value Index are.

    What I want to do is to

    1) Assign the object to use class texture.

    2) Set the orientation of the object to be consistent.

    3) Ideally I would like the texture origin coordinate to be the world.

    Any guidance as always is appreciated.

    Thanks.

  3. I posted this on the General message board. Orso pointed out there are a number of good resources out there already. Namely VectorLab and the NA Developer wiki. I have been referring to these a lot recently- VectorLab has some gems in it. Being Wiki's I find the info a little buried on both sites.

    I think these two resources are good for Advanced users, not so good for beginners looking to get in. I think there is a lot of info out there that would be good to aggregate.

    I note that only 14 people replied to the Survey, most know some script and are looking for a more centralized space. This forum is great for people helping. I find sometimes I can't find posts I want to go back to. It would be good if we could 'tag' the posts in this forum.

  4. I've been watching my VW ErrorOutput.txt file in BBEdit testing some older plugins. I've getting Nil Handle errors. Some of the plugins have been used in large project files with out causing a problem- not sure how bad this is?. If possible I'd like to know how to resolve them.

    I have an object that has text included. I want the text size to be relative to the object, not the layer scale.

    My process is:

    New:=GetCustomObjectInfo(ObjectName,hObject,hRecord,hWall);

    hLayer:=GetLayer(hObject);

    lScale:=GetLScale(hLayer);

    IF lscale<1 Then lScale:=50;

    My trouble is on the single click of the icon. The script executes before an object is placed (Vectorlab has a good outline of events)... As this is prior to clicking in the drawing the object can not have a layer- And so the error output reports 'hLayer is Nil'.

    I thought the answer might be:

    IF IsNewCustomObject(ObjectName) THEN

    BEGIN;

    hLayer:=GetLayer(hObject);

    lScale:=GetLScale(hLayer);

    IF lscale<1 Then lScale:=50;

    END;

    But this did not work.

    Is there a function that identifies the tool click event?. Do I need to be concerned about this as my tools seem to be performing okay?.

    In reading about IsNewCustomObject says 'New object status is useful in specifying initialization and setup data'. I looked on Vector Lab but did not see anymore about this. I'm not sure what specifying initialization and setup data is. What is the practical application of this?.

  5. Orso, I'm glad I can bring you a smile- its the least I can do to give you back the help you've given me. : )

    There is a clear process above relating to how to get up and running with the SDK. It involves getting software from a specific site. Downloading it and installing it in a specific location. There are example files located within one of the downloads that can be complied. I have downloaded X-Code and the SDK but was lost from there. I would love to see a YouTube of the process of how to get set up and compile the first example. I'm not looking for a C++ education.

    I think that the free new media of wiki, youtube etc provides incredible opportunity to distribute information and education. Last summer I took on an intern student. After 6 weeks tutorial he went from never touching code to learning what took me 7 years of trial and error. I'm convinced that tutorial and explanation of how why and when approaches are taken can only help the community.

  6. Procedure MyDuplicate;

    Var

    Htemp:HANDLE;

    hTemp1:Handle;

    BEGIN;

    BeginPoly;

    Moveto(0,0);

    Line(100,0);

    LIne(0,-100);

    ENDPOLY;

    Htemp:=LnewObj;

    BEGINGROUP;

    Htemp:=Hduplicate(Htemp,100,0);

    Htemp:=Hduplicate(Htemp,100,0);

    ENDGROUP;

    Message(Concat('Htemp:',Htemp,' Group:',lnewobj));

    END;

    RUN (MyDuplicate);

    This procedure returns a Nil handle to the group.

    If I move the poly creation to inside the group call it works.

    ?.

  7. Orso.

    I have not had any issue with it... But I will remove as suggested. The reason I pass in the group of profile is for ease of editing latter. The function I use this in is a menu call that allows me to select a 2D shape on screen, and input a profile shape to extrude. This creates a 3D solid intersection.

    have been using the method you suggest, cycling, but when I go to make an alteration to the object outside of the script I was getting 20 planks that need to be edited.

    By sending a group of handles into the extrude container I have one object to intersect that mimics the way I would model outside of scripting.

  8. Jeffery.

    For me BIM provides the potential benefits of improved coordination of building consultants which leads to clashes on site. BIM is new to the industry. The thing that affects my bottom line will be the improved efficiency that comes from a model exchange. It reduces me having to redraw the engineers drawings over mine. It provides the opportunity to clash test and reduce on site muck ups. While it would be good to provide the model for the Facilites management- for me this stage of BIM can wait.

    Yes Revit is a closed system. Becuase it does not use IFC does not mean it is not interoperable. The different packages Revit provides allows all members of the design team to have software for their specific requirements. The file exchange is seamless between consultants. At this stage in the BIM development this is key. The Revit users are exchanging model files back and forward. It is providing clash detection. In a local building currently under construction the Head Contractor has engaged an independent architect to BIM the project using Revit. In the Project all components larger than 20mm have been modeled. NZ distance from the world requires significant lead times to order materials. The BIM model has been used to order cut to size pipe work from Germany. With a 3 month lead time, the services are effectively constructed before the floor slabs. The project that had allowed 10 working days per floor to install the services have literally cut their time in half. The file sharing that is happening today with Revit is what Interoperability is.

    VW is behind on the race. If NA does not want to put the time effort and resource into 1) developing methods and workflows and 2) providing worked examples with guidance on how to implement the standards, methods and workflows then those who want to explore BIM will likely move to a platform that has proven itself.

    If you can give me the contact of one NZ architect or Structural engineer who is currently exchanging and sharing IFC BIM files that can clash detect elements across architectural structural and services then I will happily eat my words. Because it is the small offices like mine who have invested so much time into the VW platform who hope like heck VW will catch up. Frankly there is a lot I love about VW and really don't want to change. But if VW does not prove it self to be a good and reliable BIM tool soon then change is what we will likely do.

    I had 5min on VW2011 the other day, it was only quick but was a bit disappointed. I annotated a box in 3D (yay). I cut a section view port and the Text did not show up (BOOOO). I hope it's just I missed a setting. BUT if the Section VP don't show the 3D annotation... then what's the use of having a tool to annotate a model?.

  9. Vlado.

    Go on- do us a youtube.

    Screen recording is standard in Preview OSX10.6.

    It looks like the process takes you less than 5mins... You don't need to be to precious with the explanation just watching helps.

    An introduction on how to get going would be hugely appreciated.

    Thanks

  10. Here is an extension to Orso's function this allows you to pass a group of profiles into the extrude container. I have not tested much so use at own risk. There should probably be a test routine to make sure only extrude able objects are in the group.

    The code has been deleted as requested...

  11. In summary Jeffery. Revit can do it, but the user doesn't know how much information to send. Where as VW can't do it, is not going to provide in software solution and will wait for a third party that can read a file mark up type which is still in development.

    And When asked to show a detailed example of how VW can interoperate with other NA software this is not a priority and something NA does not have time for.

    NA say VW is a BIM capable tool, I'm sure theoretically one could deliver some aspects of BIM. Just like theoretically some one could drive from LA to new York with out a map. However If I was to take that road I would probably buy the new car with the navigation first.

  12. I posted this in the Vector Script form also.

    After a couple of years in this forum I notice there is the reoccurring post of 'how do I start'.

    I have learnt most from reading others code. I think a combination of Youtube videos with example scripts would be a really good education tool.

    There are a number of excellent resource site out there but does not seem to be any 'Vector Script School' site.

    I've made a quick canvas form on Zoho to see what interest there might be in such a site / community. Please click link and make a response.

    Survey Form

  13. This section of the tech board is great for the community to ask questions and provide answers. There are a number of good support sites for those with a little experience.

    After a couple of years here there is the reoccurring post of 'how do I start'.

    I also see a number of terms and concepts reoccur which I don't get yet.

    I have learnt most from reading others code. I think a combination of Youtube videos with example scripts would be a really good education tool.

    There are a number of excellent resource site out there but does not seem to be any 'Vector Script School' site.

    I've made a quick canvas form on Zoho to see what interest there might be in such a site / community. Please click link and make a response.

    Survey Form

  14. Have not had a go yet but from reading.

    Personally I have had real trouble with VP annotation. We do very detailed work so always ended up using the 3D model as the reference for 2D drawings. Our VPs often get bogged down, the VP will lose lines when we zoomed in a night mare for dims.

    Maybe the 2/3d needs new workflow.

    1) MODEL Layers

    2) Viewport on Design Layers for annotation & Dims.

    3) Sheet layers to present.

  15. In New Zealand Revit is growing quickly. I know of a number of people who moved from VW to revit and have not looked back.

    The main compliant I hear of revit is the drawing line weight controls are parametric and hard to access / understand. It takes a lot of using it to get to understand the family and template system to get drawings to look good.

    VW produces excellent and clear drawings.

    If you want to focus on modeling and BIM the research I've read (www.construction-innovation.info) suggest that suggest revit is better. Keep in mind these case studies are now older and VW will have matured as a BIM tool. Maybe NV can post some examples here of projects that have been BIM delivered on VW. VW2011 may be more BIM oriented have not had a chance to play with it yet.

    You can not have multiple live views of the model in VW. You have to update the views which takes time.

    The model is always live in Revit.

    Revit now has Max render engine built into it.

    Vectorworks now has the Cinema 4D engine built into it.

    As the software gets more complex it takes more experience to drive it well. Main problem with VW in NZ is that it is not used in any of the Architect Schools. All the recent grads can use Revit. The cost to train in VW means it can be a more expensive option.

    You can 'break down' the VW file with Work Group Referencing, BUT you can have very complex file structures to manage.

    I'm on VW now because I know it the best... if I was starting a new I would probably go Revit.

  16. Does anyone have a script that can automate print or image output with out needing a user to interface?.

    I want to be able to:

    1)

    Script the file location

    Output all Sheet Layers to PDF

    2) Loop

    RenderThisView;

    ExportJpeg(Concat('FilePath,'Filename',Num2String(1,RenderCount));

×
×
  • Create New...