Recently active
Hey everybody, is there a way to access the feature ID from a part or assembly programmatically? I know that it is possible to get the feature ID via the selection option but can I archive the same without user input? Is it possible to generate a list of all parts of an assembly which contain said ID? Any help is greatly appreciated!!
I'm working in CREO 4 and I have a casting model with datum target points defined in it and then I have an external merge setup for the machining model. I need to reference the datum target points from the casting model to establish my machining datums but I can't find out how to get these target points and datums to show. Please help.
My goal is to create a dimension in a drawing view between a CSYS and the axis of a hole. This dimension will then be converted to ordinate, together with dimension of other holes. I'm able to add the axis to the selection but the command Drawing.CreateDimension throws the exception XToolkitBadDimAttach. This is what I have so far: public void createAxisDims() throws com.ptc.cipjava.jxthrowable{session.UIClearMessage(); if (model.GetType() != ModelType.MDL_DRAWING) {return;}Dimension hBaseline = null;Dimension vBaseline = null; Drawing drawing = (Drawing)model;View2D selView = drawing.GetViewByName("VOORAANZICHT"); Solid rootSolid = (Solid)selView.GetModel(); ModelItem csys = rootSolid.GetItemByName(ModelItemType.ITEM_COORD_SYS, "CS_INSTALL_DIM"); Selection csysSel = pfcSelect.CreateModelItemSelection (csys, null);csysSel.Highlight(StdColor.COLOR_EDGE_HIGHLIGHT);ModelItem selItem = csysSel.GetSelItem(); ComponentPath selPath = csysSel.GetPath(); Point3D selPos = cs
Hi, ... I also posted this in "Assembly Design" group on an old thread revival (link) I get into a problem with the VB API and I cannot figure out, using this code: Private Function GetCellText(TheTable As IpfcTable, rIdx As Integer, cIdx As Integer) As String Try Debug.Print("Number of lines in table: " & TheTable.GetRowCount) Debug.Print("Number of columns in table: " & TheTable.GetColumnCount) Dim MyCell As IpfcTableCell = (New CCpfcTableCell).Create(rIdx, cIdx) Dim MyText As Cstringseq = TheTable.GetText(MyCell, 0) Return MyText(0).ToString Catch ex As Exception MsgBox(ex.Message & vbNewLine & vbNewLine & ex.StackTrace,, GetCurrentMethod().Name) Return Nothing End Try End Function I get an exception from xToolkit at the line "Dim MyText As Cstringseq = TheTable.GetText(MyCell, 0)" but I can't find what I am doing wrong. Any idea?
hi, i have a problem with the pattern command, where is i chose the feature to pattern and the surface on which i wanted it , and the point of origin. The pattern dots appear to be in my desired place, but the feature is generated elsewhere. what kind of sorcery is this. images attached. Thanks.
Hi everybody,I would like to get the bill of material by API. I have already worked through vbug.pdf, but I couldn´t find a clue in this direction.You can get the first level dependencies by IpfcModel.ListDependencies() (doing this recursively will get all dependecies for complex assemblies) but I couldn´t get the number for a part/assembly in this level?! I have played some time with IpfcComponentPath, but I think this is the wrong direction.Here a simple example:root.asm - 1 x part1.prt - 5 x part2.prt - 2 x other.asm - 3 x partA.prt - 1 x partB.prt - 8 x GenericPart.prtSo ListDependencies() for root.asm would return- part1.prt- part2.prt- other.asm- GenericPart.prtBut how to get the numbers? In fact to get the commercial counts for purchase I need to pass the number of other.asm (2x) down to multiply.Hope this shows what I mean 😃Thanks in advanced for your help.Best regards,Benjamin
Hi I am trying to retrieve model, using the API Is there a way to retrieve model quickly without regenerating Thanks, Swapnil
Hello, is there a way to search in the File Open dialog box for the number and not for the file name. Thank you in advance.
Hi, I am trying to add a new dialog box to creo tool using the below command. status = ProUIDialogCreate(EX_DLG_NAME, EX_DLG_RES_FILE); EX_DLG_RES_FILE this the .res file which is created using creo_ui_editor. I get PRO_TK_GENERAL_ERROR. Is it because of any location issue or anything else. Some one please help me resolving this issue. Thanks
Hello,.I have problem, I want to use toolkit get points data from pattern,how can I do? Thanks and Regards Roger
Hi everyone, I'm looking for help to solve my analysis now. Our company has bought extended license of Creo Simulate to be able to run a contact analysis incl. rubber part. I have been trying to solve this by myself and almost gave up on this. So I hope someone could share their experience with me=) The analysis I need to run as follows:1) Assembly consists of:- a valve house made of Ductile iron GGG-50.- a wedge insert made of Ductile iron ggg-50 and covered with a rubber layer (This is a subassembly)2) I could cut 3/4 part of this assembly and use symmetry constraints to save some time.3) Valve house has fixed constraint at the bottom.4) There are contacts (component - component) between the valve house and rubber (covering the wedge insert). 5) Wedge insert and wedge rubber are bonded (component - component)6) There is not force or pressure applied in this case but the wedge need to go down to meet the contact surfaces in the valve house. Or maybe there is a much easier
I have a dynamic time analysis and want to show stress throughout the time history at a specified point. The tricky part is that the measure is on a thin sheetmetal bracket. I've modeled the bracket as a solid in Parametric and created a shell pair to mesh it as a shell. I want a measure on the top and bottom of the plate so I've created a datum point on each side and created stress measures at a point with time eval checked on and set to each step. My problem is that when I plot my measures in the results viewer, they both come out identical even though when I look at the contour plot for a specified time step, I can see that the top and bottom stress are very different (opposite signs for stress xx since it's partially in bending). It seems like the measures at the top and bottom point are both plotting for the shell top values. Is there a switch somewhere that I'm missing to show the bottom values or a different way to set up the measures? I
Hi, I am doing a little program in which the user will select a table in a drawing, and then the program will read that table and extract information and do stuff with it. My problem is that I can't figure out how to cast the selected object to a table object. Here's how I launch the selection process: Private Sub BtnSelectTable_Click(sender As Object, e As EventArgs) Handles BtnSelectTable.Click Try Dim SelectedTable As IpfcSelections = SelectFeatures(theBaseSession) For i = 0 To SelectedTable.Count - 1 Dim CurrTbl As IpfcTable = SelectedTable.Item(i) MsgBox(CurrTbl.GetRowCount) Next Catch ex As Exception MsgBox(ex.Message & vbNewLine & vbNewLine & ex.StackTrace,, GetCurrentMethod().Name) End Try End Sub Here's how I select the drawing table (comes from the PTC supplied example): Public Function SelectFeatures(ByVal session As IpfcBaseSession) As IpfcSelections Dim selections A
Is it possible to move a datum feature symbol in one combination state while not having it move in another combination state? Say you have two combination states, each with features of size that reference datum A. In the first combination state, you have the model oriented in a particular manner to highlight a specific feature of size. Datum feature symbol A is located so as to be visible. Now, in the second combination state, the model has to be rotated 180 degrees to highlight a different feature of size that also references datum A. It's our policy to show all referenced datum feature symbols on the sheet where they are referenced. However, if datum feature symbol A is moved in the second combination state, it is no longer visible in the first combination state. Has anyone else come across this issue? Thanks
In this tutorial, you can learn How to create a mechanism and transform Loads to Creo Simulate
Hello, My company recently upgraded from WF2.0 to WF4.0 and we were pleased to find the built in Adobe file printer but quickly found that in printing the pdf's that a lot of the text formating was coming out wrong. It is most apparent with notes that are right justified, the pagination and spacing is all wrong. The default drawing text is 'font' and the pdf settings were to convert to true font. I played with it for a bit and found that if the font in the drawing was a true font, I used CG Triumvirate, then it would print the pdf perfectly. So my thought is to try and change the default drawing font to CG Triumvirate. I have been able to manipulate my settings and my config file so that when I create a new drawing it will indeed default to CG Triumvirate. The problem is that when I open up an existing drawing it still opens in the original font. My company has well over 40,000 drawings already in the PDM and we often create new drawings based off of old ones. Is there any way to chang
Hi, I have some doubt related to Sheet metal. While Creating sheet metal drawing using with material grade AISI 1018(MS), there is variation while comparing to creo sheet metal bending dimensions with manufacturing (output dimensions) How this variation happened? Because Dimension variation nearly 4.0 to 5.0mm more when comparing software to real time manufacturing , Can u people guide me or explain me how it happening? For Example : Blank Dimensions for both In drawing & Real time manufacturing : 97.3/97.5mm In Drawing (after bending) - Width :55.0mm x Height : 25.0mm , But In Real time manufacturing (After Bending) - Width : 59.0mm x Height 25.0mm. How ? Bending : In Drawing bending done in number stage or number stroke type( Because we never get blank dimensions while use forming tool type in creo) In Real time manufacturing done in forming type (Single Stage or stroke) Please guide us !
Hello, I have a problem about using pro/e toolkit to export points coordinate from Pattern。 Following is my program I have got the selected pattern id & handle ,how can i get points xyz coordinate in the pattern? Thanks and Regards Roger
I am standing up a new license server and after beating it in to submission so that it runs stably I am now encountering something that I do not understand. I am able to connect a session to the server and get a Creo Essentials II license but when I try to request an Engineer III license I get an "unable to connect to the license server" error. It is not a no licenses available error but a can't connect error. There are licenses available and if I drop back to just the II license it grabs one just fine. #################### FLOATING License ##################### Serviceable = Creo Engineer III# Feature Name = PROE_EngineerIII# Feature Version = 37.0# Number of Copies = 1# Expiration Date = permanent #################### FLOATING License ##################### Serviceable = Creo Essentials Team# Feature Name = PROE_EssentialsII# Feature Version = 37.0# Number of Copies = 4# Expiration Date = permanent Again, this is a new server. There are no clients attached
When I attach a Datum Feature Symbol to a drawing dimension (Creo 4, M030) and them move the symbol, one arrowhead of the dimesion I place the symbol on will disapear. After it's gone, there is no way that I can find to bring it back. Anyone else see this and have you come up with a workaround? (view in My Videos)
When there are multiple entities that come to a convergence it is difficult within a sketch to have the entities move in a reliable manner with changes. It is also difficult to know which constraints apply to which entity. Maybe this is really simple but it drives me nuts. Below is an example of a sketch convergence. Note that there are a number of point on entity constraints. converge There are at least 3 point on entity constraints as well as the point which gets used down stream. The magenta vertical line is a construction line. I need to be able to fix the convergence at the horizontal reference. The center point of the 2 angled lines needs to be at a distance from the vertical reference. The 2 angled lines needs to have their value driven from the central vertical reference. What would be nice is if everything that is converged only had one point of which the 2 angled lines only could move in the horizontal direction fixed o
hi, if any one has made use of toolkit function 'ProDocumentFileContentsRead' , please let me know if it can be used to read contents from text file .. Thank you
Hi, I have created a family-table that has some instances. Then I created a drawing of the generic and replaced it with one of the instances of the family-table. In this drawing I want to display the name of the current instance. I want to create a simple (no repeatregion) table that shows the instance name and the common name of the current instance: I tried the following: FamilyTableInstanceName: | &fam.inst.name I also tried &fam.inst.param.value and &fam.inst.param.name Creo recognizes the parameter as parameter, but no instance-name is displayed. I also tried to switch symbols, but it doesn't show any value. &fam.inst.param.value is automatically replaced with &fam.inst.param.value:1 and when I switch symbols it shows: fam.inst.param.value, but not the name of the instance. Displaying other parameters of the assembly like &length:1 w
Hello everybody, With Creo Parametric I have a config that through search path allows me to search for components in another folder (libraries) I put myself in the workbook, which inevitably contains about 1000 codes. The problem is that when the CAD does not find a model because it is in libraries, it takes an eternity to understand it before moving on to the library folder. It seems because there are so many files It's normal?? Do you want us to be the only ones working with folders with many codes and the search path?
Hi , I have created a ribbon manually. through my toolkit application i am creating a button using ProCmdActionAdd, ProCmdIconSet and ProCmdDesignate. But Iam not able to use same set of functions to create another button. i don get any error but no buttons are getting created . could any one please guide me on this?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.