Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: LucasC
  • Content: Threads
  • Order by date
  1. LucasC

    Creating custom drafting symbols

    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...
  2. LucasC

    CATIA Macro Menu and IDE freezing V5

    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.
  3. LucasC

    Converting text selection to uppercase

    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!"...
  4. LucasC

    Searching for FrontView Scale

    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...
  5. LucasC

    Duplicated standards in hole command

    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.
  6. LucasC

    VisBasic in NX??

    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?
  7. LucasC

    Sheet re-numbering

    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...
  8. LucasC

    Controlling when a userform is opened

    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...
  9. LucasC

    Applying changes to multiple sheets in 1 drawing

    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...
  10. LucasC

    True/False for a string value

    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...
  11. LucasC

    Datum Flags VB Code

    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.
  12. LucasC

    Resize font inside a CATDrawing text box

    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...
  13. LucasC

    Drawing Balloons

    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...
  14. LucasC

    Background RGB value

    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...
  15. LucasC

    Working in a CATPart in a CATProduct VBA

    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...
  16. LucasC

    VB6 User Selection being skipped

    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...
  17. LucasC

    Vb for catia on windows 10

    Is there an easy way to get VB on a windows 10 pc? We just upgraded at work and alot of my macros wont work.
  18. LucasC

    Setting body color RGB with an array

    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...
  19. LucasC

    Open linked 3D model from a CATDrawing VisBasic

    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)...

Part and Inventory Search