Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Civil view a scripted plugins

Civil view a scripted plugins

Anonymous
Not applicable
517 Views
1 Reply
Message 1 of 2

Civil view a scripted plugins

Anonymous
Not applicable

Hi,

 

I am getting more and more into MXS, particularly leveraging off civilview which I have loved since 2007.

As part of making max more design orientated as I am finding that the use of maxscript allows design to be accurate, fast and friendly going into software like Naviworks.

I am at a stage now where I had a crack at a plugin to make overhead gantries parametric similar to that is already present in Civilview.

 

The trouble is I don't really have a good grasp of the class id for getting the plugin in as part of using the object placement style editor.

 

The Autodesk help menu from civil view says this

"Source

Can be used in one of two ways depending on whether the source is a static object or a parametric object:

  • For static objects, names the external 3ds Max (.max) file that contains the furniture object. This .max file must exist within the /objlibs/furniture folder within a current Civil View resource kit. File names can be specified with or without the ".max" filename extension.
  • For parametric objects, a 3ds Max object plug-in class must be specified. Class names must end with "()" in order to be recognised as a plug-in class rather than a .max file. Several parametric object plug-ins ship with Civil View as standard, for example:
    • Vsp_Gantry()
    • Vsp_Lamp()

And I cant find how these were created but secondly how I can get a class id suitable for my little plugin. I know I could take it further once I could understand how to get it into civilview.

 

Thanks

the header of my script is such but wondering how to define a vsp based classid

plugin simpleObject OHLE_gantry
name: "OHLE_Gantry"
classid: #(0x1c3a0585, 0x132e1a47)
-- create the boxes for use as the UC, base plat
		category:"OHLE_Furniture" 

etc....

 

Thanks

0 Likes
518 Views
1 Reply
Reply (1)
Message 2 of 2

Swordslayer
Advisor
Advisor

From the help quote, Several parametric object plug-ins ship with Civil View as standard, it sounds to me that there has to be a matching object plug-in civil-view-side? The classIDs for Vsp_* objects in max are pretty random and have nothing in common so that doesn't seem like a problem. I know nothing about Civil View, though.

0 Likes