You asked for it!!
😉
Below is an example using Windows Script components to build a lip channel.
To use, you need to perform the following steps
a. Install Windows Script Components (available at
http://www.microsoft.com/scripting)
b. Register the component (follow the instructions on the Microsoft site)
c. Tie this into your table using the value 'LipChannelTest.WSC' (in place
of what is current 'AecX.Aec..etc)
d. Ensure your table contains the column with Id values of LABEL, A, H, C, t
e. Test the new table.generator
Note that you can also make this as part of a normal COM server DLL using
VB, C++, whatever. The only requirements are the following properties and
methods.
Properties:
Id: BSTR Takes the GUID of the table row being generated
Style: Object Interface to the Style to be populated with a new
shape
Table: Object Interface the the Table object gaining structured
access to the XML data
Method:
Sub Generate() Called when the above properties have been populated
by the system
Even though it is more effort to install, I gave the WSC example as it is
easier to read, allowing you to reverse engineer the code more easily. Note
in VBScript everything is an Object, hence why there are no (invalid in
VBScript) Dim var As XXX lines.
Enjoy
**** CODE EXCERPT STARTS HERE ****
description="LipChannelTest"
progid="LipChannelTest.WSC"
version="1.00"
classid="{489c233b-9c3e-4692-8237-fcd304f5ab8d}"
>
**** CODE EXCERPT ENDS HERE ****
--
mark webb
software engineer
building industry division, autodesk
"Jon Smith"
wrote in message
news:7C841D0908AF23C2F1391C8DFF9A8736@in.WebX.maYIadrTaRb...
> We have successfully created new structural catalogues as per Step 2
below,
> but have had no luck on creating a shape generator.
>
> Do you have any examples of implementing the shape generator?
>
> Many Thanks
> Jon Smith
> CSB (Coins)
>
>
>
>
> "mark webb, autodesk" wrote in message
> news:91802A621828EAC76042838B9B523C23@in.WebX.maYIadrTaRb...
> > This is a two step (and currently manual) process.
> > Step 1 is to write a parametric shape generator. This is essentially a
COM
> > object with a specific set of Properties and Methods that converts a
> > location in a pXML table (the data format used by the Structural
Catalog)
> > into a Style.
> > This can be written in any language that can make COM Automation. We
have
> > had success in using Javascript and Vbscript in a Windows Script
Component
> > (see www.microsoft.com/scripting for more info)
> >
> > Step 2 is to write you table in XML. There is currently no specific
editor
> > available, but with knowledge of the data structure and a standard XML
> > editting application this is fairly straightforward.
> >
> > If you want to continue along this path, I suggest continuing this
thread
> in
> > the customisation newsgroup (autodesk.aec.arch-desktop.customization)
> >
> > regards
> >
> > --
> > mark webb
> > software engineer
> > building industry division, autodesk
> >
> >
> >
> > "designs4cad" wrote in message
> > news:f06ac8f.-1@WebX.maYIadrTaRb...
> > > being new to ADT, 3 months, i would like to add more shapes to the
> > structural members catalogue but so far i havent been able to work out
> how.
> > I.E i want to add block and beam componants, Z purlins, even chamfered
> > kerbs. i know kerbs arn't structural members but until ADT has
> Architectural
> > external works (manholes, drainage, etc) i'm trying to use this for the
> time
> > being.
> > > have any seasoned users got any ideas or suggestions
> > >
> > > cheers
> > >
> > > Dave
> > >
> > >
> >
> >
> >
>
>