Skip to main content
1-Visitor
May 16, 2011
Question

windchill 10- Modelling objects

  • May 16, 2011
  • 4 replies
  • 1151 views

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

1-Visitor
May 17, 2011
Did you compile the class using following utility.

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





Selva1-VisitorAuthor
1-Visitor
May 17, 2011

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

1-Visitor
May 17, 2011
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;

}

}


Selva1-VisitorAuthor
1-Visitor
May 18, 2011

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