Has anybody else run into this limiation? If so, how do you deal with it?
I have been trying to extend the convert task functionality to include other file types (i.e. MS Word & Excel), but if my script reaches 32,040 characters the nothing else will be added.
SolidworksSolidworks Pdm enterprise Pdm
I ran into the same problem. I deleted all the file extensions from the functions SetConversionOptions() and bIsSupportedExtension() that I knew I would never use. I also removed all comments.
That's pretty much what I started doing also. I Removed comments and extra spaces particularly where gaps in the lines were, but still had indents.
Removing that limit would be a nice ER, don't you think?
Agreed.
http://blogs.msdn.com/b/oldnewthing/archive/2007/01/11/1450795.aspx
I believe this is SPR 624769 Size restriction on VBA code that can be written in the Convert Task 'Advanced Scripting Options'.
This is not an enhancement request, so you need to ask your VAR to be added to the SPR.
Amazing what can be found on the internet. So, 32,767 characters - a max integer. So, basically we are dealing with the limits of a packed array.
I could be mistaken but I think the limmitation is more of a limmitation related to VBA so I think that the enhancement request needs to be framed around using .net instead of VBA.
The problem seems to be that a large text "string" is being copied from the advanced scripting box in the task, modified with the EPDM macros, and then being put into a temporary vb script file. I'm not sure how .net vs. VBA will make a difference - I'm not familiar with .net. I know that we don't have limitations like this in the VBA code windows / modules.
It would be much nicer if the script was actually opened and edited directly in a VBA environment like when we edit macros in SolidWorks or Excel, etc. Then, we would get the added benefit of using the VB formatting automation, object and datatype auto-completion, library referencing, debugging, etc. Maybe it would be better to request for that instead.