Quantcast
Channel: PTC Community: Message List
Viewing all 11703 articles
Browse latest View live

why can i not open a solidworks part? i thought i didnt need an additional license to open non creo parts.


Re: Access to Knowlege Base and other resources.

$
0
0

ROBERT HAHN, if you are running Schools edition software, you will not have access to the knowledge base. I'm not an academic sales specialist, but I would assume you need to purchase Creo w/a maintenance option to have access to the knowledge base.

Re: Possible to script insert of OLE object Excel file in Creo drawing?

$
0
0

  Dan,

 

  Yeah, we use restricted parameter lists for other scenarios.  The issue in this case is a model and corresponding drawing would typically have several dimensions and sometimes a note or two that would describe something considered a KPC.  Each of these KPC’s would have a sequentially numbered line entry on the table with a corresponding CC number and associated Reason text.  So each of these items would have to have a parameter associated, with the restriction list driving the CC to be 1-5 and the Reason code driven by a relation to auto-populate the text based on the CC code.  We’re looking into some custom programming to achieve this and long run, it could be a better solution if it drives the info back into the model (rather than a table that just exists on the drawing).  For now we’ll use the Excel table and users will have to manually add the table OLE object rather than have the simplicity of a mapkey that does all the work with one click.

 

  Erik

Re: API to write the name of the part name and number to a file(notepad) if its life cycle state is changed ?

$
0
0

Short Answer

You should be able to use a listener but off hand I don't know how to get the source transition state.

LifeCycleServiceEvent.generateEventKey(LifeCycleServiceEvent.STATE_CHANGE

 

The other alternative would be in a workflow.

 

Long Answer here is a rough example of the code putting it into a logger.info

 

You need 2 java class files
TransitionStateListenServiceInterface.java
package com.companynamehere.service.transitionstatelistener;
     public interface TransitionStateListenServiceInterface {
}


TransitionStateListenService.java
import wt.util.WTPropertyVetoException;
import wt.lifecycle.*;
import wt.log4j.LogR;
import java.io.PrintWriter;
import java.io.Serializable;
import java.beans.PropertyVetoException;
import java.util.Enumeration;
import org.apache.log4j.Logger;
import wt.services.ManagerException;
import wt.services.ServiceEventListenerAdapter;
import wt.services.StandardManager;
import wt.session.SessionContext;
import wt.util.DebugProperties;
import wt.util.DebugWriter;
import java.util.Properties;
import wt.doc.WTDocument;
import wt.epm.EPMDocument;
import wt.fc.WTObject;
import wt.org.WTUser;
import wt.part.WTPart;
import wt.session.SessionHelper;
import wt.util.WTException;
import wt.util.WTContext;
import java.util.*;

public class TransitionStateListenService extends StandardManager implements TransitionStateListenServiceInterface, Serializable {

   private static final String CLASSNAME = TransitionStateListenService.class.getName();
   private static String FILE_SEPARATOR;
   private static String WINDCHILL_HOME;
   private static Logger logger = null;
   public static PrintWriter print = null;
   static {
       try {
           logger = LogR.getLogger(TransitionStateListenService.class.getName());
           wt.util.WTProperties wtProperties = null;
           wtProperties = wt.util.WTProperties.getLocalProperties();
           FILE_SEPARATOR = System.getProperty("file.separator");
           WINDCHILL_HOME = wtProperties.getProperty("wt.home", "");
       } catch (Throwable throwable) {
           logger.debug("\n" + throwable.getMessage());
       }
   }

   @Override
   public String getConceptualClassname() {
       return CLASSNAME;
   }

   public static TransitionStateListenService newTransitionStateListenService() throws WTException {
    TransitionStateListenService instance = new TransitionStateListenService();
       instance.initialize();
       return instance;
   }

   @Override
   protected void performStartupProcess() throws ManagerException {
       /* Standard debug output */
    logger.debug(CLASSNAME + " performStartupProcess");
       /* Standard way to become admin */
       SessionContext prev = SessionContext.newContext();
       try {
           SessionHelper.manager.setAdministrator();

       } catch (WTException wte) {
           logger.error("StandardListenService: failed to set Administrator (ok if installation)");
           return;
       } finally {
           SessionContext.setContext(prev);
       }
       try {
           logger.debug("performStartupProcess() starting ..");
           getManagerService().addEventListener(new ServiceEventListenerAdapter(this.getConceptualClassname()) {

               @Override
               public void notifyVetoableEvent(Object event) throws WTException, PropertyVetoException, WTPropertyVetoException {
                   LifeCycleServiceEvent lifecycleEvent = (LifeCycleServiceEvent) event;
                   Object object = lifecycleEvent.getEventTarget();

 

                   try
                   {

                        if (object instanceof WTPart) { 

                         WTPart part = (WTPart) object; 

                                  // do your code here

                                   logger.info("part " + part.getNumber().toString() + " " + part.getState().toString() );

                         }

                   }
                   catch(Exception e)
                   {
                       logger.error("error transitioning object" + object.toString() );                   
                   }

               }
           }, LifeCycleServiceEvent.generateEventKey(LifeCycleServiceEvent.STATE_CHANGE));
           logger.info("performStartupProcess() Completed ..");
       } catch (Exception e) {
           logger.debug("Error in try block >>>>>>>>>" +e.getMessage());
           throw new ManagerException("Error");
       }
   }


}

 

 

then you will need to add the following to site.xconf file

<Property name="wt.services.service.200000" overridable="true" targetFile="codebase/wt.properties" value="com.companynamehere.service.transitionstatelistener.TransitionStateListenServiceInterface/com.companynamehere.service.transitionstatelistener.TransitionStateListenService"/>

run xconfmanager -p

copy the class files their respective locations in the method server, 

 

restart the server and you should be getting some logs.

Parameter in drawing

$
0
0

I have a drawing of a single part. The part has a string parameter called "DESCRIPTION". This is called out in the drawing's title block with "&description" in the usual fashion.

 

We also have this parameter linked to Windchill so we can see it in its own column. That's handy, so I am trying to use this aspect of Windchill more. I want the DESCRIPTION column to return the same value for the drawing as it returns for the model used in the drawing. So I can put a string parameter in the drawing, with the same value as for the part, but I would prefer to use a relation if possible so they are linked. Is this possible? Logically it would be like this:

 

DESCRIPTION (drawing) = DESCRIPTION (part)

Re: Print Mapkey Issue

Re: I am trying to Export to DWG - Scaling Issues?

$
0
0

Jolene,

 

please ask some AutoCAD expert.

 

According to AutoCAD Tutorial | Units and Scales | CADTutor AutoCAD drawings are created with scale 1:1 by default. Therefore AutoCAD Measurement tool does not compensate scale value and returns real distance between two drawing entites.

 

MH

Re: Dot notation and unit vectors for kinetic analyses

$
0
0

I apologize, lack of parentheses in an expression, so I do not have a correct result.

I add a new photo with the correction.

 

Vector Identities.jpg


Re: Repeat region not working

$
0
0

It was a similar thing in this model. The part in question was a length of silicone tubing, which is very pliable. In the assembly the part was bent up into its final shape and was generated with a sweep. It's only purpose in the assembly is visual. The actual part is just called out as tubing cut to "x" length, so it also had a straight version of the same thing in the model. One was switched off and the other was switched on. The straight part wasn't actually used for anything so I deleted that part of it.

Re: WBM Loader Installation failure?

$
0
0

Dear Shravan

 

This error is because WBM is not bale to connect to Staging DB to populate the WBM schema (requires tables/indexes etc).

See if you can connect to your staging DB from command prompt, also verify the DB entries in site.xconf.

 

Regards

Mahesh Gupta

Re: Configurable Links

$
0
0

Hi Hari -

 

I have not used the (relatively new) version-version link.  My understanding, based on the description and my experience with the behaviors of the other links, is this...

 

This is a link from a version (any and every iteration) to a specific revision (latest iteration.)  It would be similar to a describes link, but instead of being able to change/remove/add links at the iteration level, the linkage would be at the version level.  If you don't need iteration specific linkages, this link could be a benefit as it does not need to be "carried forward" to new iterations, just new versions.

 

There are several areas where this type of link would have been out preferred choice (compared to describes link,) if it existed when we modeled our links.  Two issues we have run into with describes links that could be avoided with version links are:

  • The volume of describes link records in the database.  Since describes links exist at each iteration of a version, "A.32" could mean there are 32 instances of the describe link in the database for version "A".
  • The "forever persistence" of a describes link.  Since describes links are stored for each iteration, it can become "impossible" to remove an object once it has been linked, as a reference to that object can exist in the link table for non-latest iterations.  When this happens an attempt to delete the (previously linked) object results in a referential integrity violation.

 

Again, I have not used these, and this opinion is based on my understanding of how these should work.

 

I hope this is helpful in trying to determine what types of links to use.

Getting ProUISpinbox value in CREO Toolkit

$
0
0

Hi,

     I am repeatedly getting fatal error when try to get the value of spinbox, My code is below

 

int RunSpinBox()

{

  ProError status;

  int   i;

  char * dialog = "mcheck_plus_resource";

  ProUISpinboxIntegerGet(dialog,"ItemValue",&i);

  MessageBox(0,i,"SpinBox Value",1);

 

}

I have attached error file. Please anybody help to solve the issue.

Problem saving .pvz file (Creo 2.0)

$
0
0

Hello,

 

I have a problem in saving a .pvz file of an assembly with Creo 2.0 M080. When I click "Save" it doesn't save the file.

 

In a similar pc, with the same versione of Creo and the same assembly, the file .pvz is saved regularly.

 

Can you tell me why? What can I check?

How to visit ProNote-s on all depth? Some ProNote-s attached as child component to subsub Part and is not Visited by ProMdlNoteVisit.

$
0
0

asm

+----asm

    +---prt

         +--asm

             +---Note , attached as component.

Re: Kinetic model of CSTR

$
0
0

See please the attach and the picture


Re: Bitmap Image not appear in Tiff plotter in Creo2.0

$
0
0

Hi,

 

http://support.ptc.com/cs/help/creo_hc/creo20_hc/index.jspx?id=About_Exporting_a_TIFF__Snapshot__TIFF_EPS_or_JP&action=s… contains following information:

plot.png

This means that TIFF printer is not able to output OLE bitmaps.

See also https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS123309

 

http://support.ptc.com/cs/help/creo_hc/creo20_hc/index.jspx?id=About_Exporting_a_TIFF__Snapshot__TIFF_EPS_or_JP&action=s… contains following information:

snapshot.png

TIFF file produced by this procedure contains bitmap picture. Unfortunately its quality is poor, because it represents a screenshot.

 

MH

Re: How to reduce a number of digits after a decimal point in a solve for variable function

$
0
0

I guess you are looking for a numeric result, right?

Using the float modifier is dangerous as it does not only affect the display but the whole calculations which may get inaccurate.

 

Furthermore the output looks undesirable because, as you may have noticed, the units are not simplified. This is because of the fact, that the symbolics does not know anything about units, it can't simply MPa*mm^2 to N as MPa, mm and N are completely different, unknow variables from the symbolics point of view.

 

So the best thing you can do as I see it is to leave it at that, if you don't want to show the expression, you may hide it in a collapsed area.

And below that region simply type C.NA= and you will see a simple numeric 2 x 1 vector in Newton.

 

In case you really are looking for a symbolic result, you can do as F.M. had suggested and furthermore replace the 0.003 by 3/1000

 

WE

Re: RPT file and displacement plot have different values

$
0
0

Matthew et All,

 

There are two issues I rather muddled in the call I raised, but the CS chap saw their independence.

 

ISSUE #1 and original reason for this thread:

 

The rigid link alters the correspondence between measure values and the values seen in the result windows.

 

There is something 'funny' going on.

 

This is now SPR 5694575.

 

ISSUE #2, of my own making

 

system measures max_disp_x/y/z reports max ABSOLUTE and not MAX (most positive)

 

Although I don't use the system 'hardwired' measures other than for indication, finding a MAXIMUM displacement has a MINUS sign could mislead.

 

These system measures have been reported for decades and I have never, until now, appreciated that they report the largest absolute movement and keep the sign.

 

The help files describe them as 'maximum WCS displacement over model'

 

Ambiguous, semantic?

 

New user beware the true meaning and create your own measures !

 

I have suggested the names of the measures be changed to be 'max_ABS_disp' and the help text clarified

 

OR

 

Actually report the most positive displacement and clarify the help.

 

To this end it CS suggested that an enhancement request be sought via the community.

 

... next post a poll to 'Rally your fellow PTC Community members to vote and push your product ideas ...'

 

I suspect this won't be a 'top product idea'

 

Rally rally,

 

ttfn

Re: Kinetic model of CSTR

$
0
0

I think Valery's method is probably best.  But here is an alternate version that gets rid of the solver.  I think it works.

2016-05-25_9-02-22.png

Re: creo3 linear dimensions vs creo2

$
0
0

This config.pro option auto_center_dimension is added from Creo 3.0, it works well in Creo 3.0 M090 on my side, after set option auto_center_dimension to yes, when place dimension, dimension text will located on the center automatically.

Viewing all 11703 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>