I am fairly new to coding macros using Visual Studio VisualBasic. So, am having some confusing problems. To simply things I amavoiding any complex code for the moment.
I have a working macro to copy some parts of the file name of apart into custom properties. I am trying to create a new macro thatwill work on a purchase part file because it has a different filenaming convention.
I had hoped that I could simply copy the directory, but visualStudio has a complex set of directories and files that it createswith a macro. Since these all have the name of the old macro, Irealized this method of copying wouldn't work.
Then I attempted to just copy the old code to my clipboard, andthen paste it into a newly created macro. But, when I create thenew macro, I am faced with a blank Visual Studio window, and noplace to paste any code. I thought a blank code window was therewhen I have done this in the past, but not any longer.
When I attempted to just start a new project, it complained that myfile path was too long. I wonder if this is the problem I amfacing, but not getting the error message when I created the newmacro?
I have also tried to record a new macro, but after recording andpressing stop, I am prompted for the file name, which I provide.Then a small window opens up saying "[] [] [] [] [] file not found"Note that the []'s represent squares of an apparently undefinedASCII character.
Joe Dunfee
Joe DunfeeSolidworksApi macros
I have a working macro to copy some parts of the file name of apart into custom properties. I am trying to create a new macro thatwill work on a purchase part file because it has a different filenaming convention.
I had hoped that I could simply copy the directory, but visualStudio has a complex set of directories and files that it createswith a macro. Since these all have the name of the old macro, Irealized this method of copying wouldn't work.
Then I attempted to just copy the old code to my clipboard, andthen paste it into a newly created macro. But, when I create thenew macro, I am faced with a blank Visual Studio window, and noplace to paste any code. I thought a blank code window was therewhen I have done this in the past, but not any longer.
When I attempted to just start a new project, it complained that myfile path was too long. I wonder if this is the problem I amfacing, but not getting the error message when I created the newmacro?
I have also tried to record a new macro, but after recording andpressing stop, I am prompted for the file name, which I provide.Then a small window opens up saying "[] [] [] [] [] file not found"Note that the []'s represent squares of an apparently undefinedASCII character.
Joe Dunfee
Joe DunfeeSolidworksApi macros