Hi,
I have created a form in a Solidworks macro.
Can I switch to Solidworks while a VB form is being displayed still?.
I want to re-orient the model and select the options in VB form to continue running it.
Regards,
Vinay
There is option called 3GB switch in some of the 3D CAD softwares.Is there any similar option in Solidworks so that we can make use of more RAM space.
Regards,
Vinay
Thanks Artem for reply.
I am not getting compile error now.
But I am not able to edit the designtable with this API.
Follwing is the bit of the code I am using,
DT.EditTable2 (True)
DT.SetEntryValue 49, 3, False, cellvalue
Doc.CloseFamilyTable
Regards,
Vinay
Hi,
I was trying to edit Design table value through macro.
I used SetEntryValue method under Designtable object.
DT.SetEntryValue(7, 3, False, cellvalue)
* DT is deisgntable object
Its giving me a compile error.
I have written the code as per syntax.
Can anyone help me on this.
Regards,
Vinay
I was able to select all entities with your Code.
Actually I wanted to move all entities to one layer.
I selected all entities but now I am facing difficulty to find a method to move all entities to one layer.
I try to make the desired layer active after selecting, but its not working.
Hi,
I was trying to select all entities in a SolidWorks drawing through SolidWorks API.
The drawing has been created from a dxf.
I searched for a method for window selection, I think its not avaialble.
Can someone has steps to do such selection.
Regards,
Vinay
I tried to implement browseforfolder example with solidworks.
Its giving an error of a dll not found.
This is the part of code where its is giving error
Private Declare Function GetCurrentVbaProject _
Lib "vba332.dll" Alias "EbGetExecutingProj" _
(hProject As Long) As Long
Private Declare...
Hi all,
Does any one knows how to create a Browse button in VB form.
I want a browse button in my VB form. In the macro I want to select a folder by using the browse button as we do in windows explorer.
Vinay
Hi all,
can anyone tell me how to delete a Macro button once I add.
I added a Macro button and gave a shortcut key , but I am not able to edit the Shortcut key or delete the macro button.
Regards,
vinay
Attach means whenever I open the part the macro must automatically execute.
I want to assosiate a particular macro to a particular part, I need not go to Tools->Macro->Run to selct the macro and run.
Hi
I think the Excel object must be Set first to access by using the code
Dim ex as object
Set ex = GetObject(, "Excel.Application")(if excel is running)
Set ex = CreateObject(, "Excel.Application")(if excel is not running)
and to access the worksheets u can use below code...