cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

windchill 10- Modelling objects

Selva
1-Newbie

windchill 10- Modelling objects

hi guys,


I am working the modelling of the objects in Windchill 10 F000. I am not able to compile the Java class. I just copied the code from the Customizer's guide. can anyone help me out?Please give me the steps to be followed. Guide is no more useless( sorry guys)


WC10 modelling is different from WC9x . Rational rose no more.


thanks

4 REPLIES 4
b211284
1-Newbie
(To:Selva)

Did you compile the class using following utility.

tools class -Dclass.includes=<package>\*





Selva
1-Newbie
(To:Selva)

yes I use the same path to compile the Java file.


For example ,



I created Test.java file where I implemented the logic. Do I need to create the _Test.java file also in the same directory?



Thanks

b211284
1-Newbie
(To:Selva)

I simply created following java file under src/ext and compiled it using
tools class -Dclass.includes=ext\* and it worked for me. Are you getting any
error while compiling the class.

package ext;

import wt.doc.WTDocument;
import wt.util.WTException;

import com.ptc.windchill.annotations.metadata.GenAsPersistable;
import com.ptc.windchill.annotations.metadata.GeneratedProperty;
import com.ptc.windchill.annotations.metadata.IconProperties;


@GenAsPersistable(superClass=WTDocument.class,

properties={@GeneratedProperty(name="sizeC",type=Integer.class,initialValue="10",javaDoc="Integer
modeled doc attritbute")},

iconProperties=@IconProperties(standardIcon="netmarkets/images/stop.gif",openIcon="netmarkets/images/stop.gif"))


public class ptcModeledDocument extends _ptcModeledDocument{

static final long serialVersionUID=1;
public static ptcModeledDocument newptcModeledDocument() throws
WTException{
ptcModeledDocument instance=new ptcModeledDocument();
instance.initialize();
return instance;

}

}


Selva
1-Newbie
(To:Selva)

I found the solutions, Yes, We need to install the Information Modeler and it is working fine for me.


Thanks guys for all your replies

Top Tags