Looking for info on what icon code type I need to create for the drafting standard xml file. I want to create additional custom drafting symbols. Creating a catalog is not what I'm looking to do. I don't know what type of code is shown in the icon 16x16 or 22x22. Once I can identify it I can...
Looking for ideas as to why V5 would freeze after just trying to open the "Macros..." from the drop down menu. I.T. reinstalled VB on my laptop which allowed the macro gui and IDE to open, however, trying to point to a .catvba file would again freeze V5. Multiple known good files were tried.
Can someone point out what I've done wrong? The intent is to simply select a textbox and change all lowercase characters to uppercase.
Private Sub CommandButton41_Click()
On Error Resume Next
If InStr(CATIA.ActiveDocument.Name, ".CATDrawing") < 1 Then
MsgBox "Active file is not a CATDrawing!"...
Need a hand sorting out a do until loop. Any suggestions for a better method welcome.
My goal is to search all the views on the active sheet until I find the FrontView TYPE(not the name of the view as these can change). I'm choosing to target the front view type due to the sheet scale using its...
Has anyone seen this issue? It has shown up in R26 and now R29. I've gone through all the folders where the standards are kept and confirmed there are only 1 copy of each. I know there are at least 2 folders in the install that have thread standards, both were checked.
Hello,
I'm completely new to VisBasic in NX, all my experience is with CATIA V5. I'm just wondering what the hurdles will be when my company makes the switch to NX. It's a broad topic for sure. Is there supporting documentation somewhere in the install? Is there an onboard editor? General Pro/Cons?
Is there a way to extract numeric values from a string? I cant use "Val" as it only gets the value from left to right. example: "Sheet 15" I just need the 15, and the numbers are always on the right. I'm running into problems when it goes to double digits. Otherwise I would just use the...
I've been struggling to find a -reliable- solution to this problem for over a year now.
I only want my userform/macro to open in V5 if an active document is present. Otherwise, if no files are open, the macro gives a runtime error for the user.
Currently, I control this with doing a simple If...
I'm trying to apply changes to a revision column on multiple sheet of 1 drawing. If the "apply to all sheets" toggle is on, it performs that action when, a separate, "apply changes" command button is clicked.
What I need help with is which method I should use to loop through each sheet and...
I'm trying to make a msgbox display when a named table(there are multiple tables i'm looping through) is not found on a V5 drawing. if the correct table is found a user form launches.
I had everything working when just using an item index but wanted to add the loop just in case another table is...
Does anyone know how to retrieve or change the value in a datum flag with VB?
I can't find any documentation and the intelligent-sense doesn't offer many clues.
Im trying to resize some font in a V5 textbox to a size different than the rest of the textbox.
Example is: "Sheet 1(size3.5) of(size1.5) 20(size3.5)"
V5 is defaulted to size 3.5 so no problem there. when i try to resize the "of" the method in the documentation does not function properly...
I cant find any information or mention of the balloon command in the drafting workbench documentation.
For the search I'm using:
Set Selection1 = DrawingDocument1.Selection
Selection1.Search "CATDrwSearch.DrwBalloon,all"
works fine for my purposes.
The part I need help with is how to...
The purpose of my code is to switch the screen to a white background then switch back to the users unique background color for multiple users (all with different colors). This is done with a toggle button on a userform.
I'm trying to pass the users current screen RGB through an array, but, I'm...
I want my macro to create geometry in the active catpart that's inside a product. I don't want to have to open the catpart in a separate window.
I was thinking the below but I'm drawing a blank here...
Dim Documents1 As Documents
Set Documents1 = CATIA.Documents
Dim...
Having some trouble with this code;
The intent is for the user to select a hole edge then generate a cylinder(GSD) normal to the support surface as a keep out zone.
It completely skips the user input(screen pick) for the edge and support surface but generates the cylinder with missing center...
Hello,
I'm trying to develop some code that changes all the part bodies in a CATPart with a group of RGB values. I'm trying to do this with an array but its not functioning correctly. It cycles through the structure and selects each body as intended but does not change the color. I believe its...
Hi all,
I'm new to visbasic and Ive hit a roadblock. I simply want to open the linked 3D model that the CATDrawing is based on. I've looked through the onboard help but it isn't clear (to me) on what to do.
Here's the code I have so far. I'm stuck with "ViewLink" (I underlined the code line)...