Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  • Users: sisau
  • Order by date
  1. sisau

    SW get point coordinates

    i'm trying to write a macro to get the coordinates of a point on excel. i've checked the API help and the only function i think that can be useful is GetPointCoordinates, but i don't know how to implement it. any idea about how to write the macro... or any alternative function? thank you!
  2. sisau

    Set coordinate system macro

    ello, i've written a macro for SW2007 but it doesn't works. i think the reason is that i need to set csystransform. the macro i have written is the following: Dim swApp As SldWorks.SldWorks Dim Part As SldWorks.ModelDoc2 Dim mass as SldWorks.MassProperty Dim swCoordSys as SldWorks.Feature Dim...
  3. sisau

    Set MathTransform = ???

    it says ActiveX component can't create object
  4. sisau

    Set MathTransform = ???

    Hello, i've written a macro for SW2007 but it doesn't works. i think the reason is that i need to set csystransform. the macro i have written is the following: Dim swApp As SldWorks.SldWorks Dim Part As SldWorks.ModelDoc2 Dim mass as SldWorks.MassProperty Dim swCoordSys as SldWorks.Feature Dim...
  5. sisau

    SetCoordinateSystem (IMassProperty)

    hello, i need to do an interface between MSExcel and SolidWorks using MSVisualBasic to calculate the mass properties from different coordinates systems. i need exactly to do what the function SetCoordinateSystem does: set the coordinate system to use when calculating mass properties for a model...
  6. sisau

    Solid Part From Assembly

    1. insert > component > new part 2. edit the part 3. insert > features > join i think this is what you are looking for
  7. sisau

    CoordinateSystem / Macro / VisualBasic / SW / MassProperties

    i think you didn't understand what i meant... probably the explanation of my problem was not as good as it should be. i do: insert > reference geometry > coordinate system then i want to get the mass properties according to this coordinate systems. in the API help i have found...
  8. sisau

    CoordinateSystem / Macro / VisualBasic / SW / MassProperties

    hey! i have written a macro to get the mass properties of the different parts of a solidworks assembly on an excel sheet. the problem i have is that i get all this properties according to the default coordinate system. i have checked the API help but i am a beginner in this field and i can't...
  9. sisau

    relation between entities

    humm i was doing the same, writing myself the part @[...].part i can say that an equation between parts cannot be added inside one part... anyway, thank you for your help
  10. sisau

    relation between entities

    to insert an equation i double-click on a dimension of a sketch and then i insert it. following this method i am only allowed to relate it with dimensions of the same part... are there any other way to do it?
  11. sisau

    relation between entities

    hmm yes it is an option but i forgot to mention one important thing: they are dimensions from different parts in an assembly... i think the equations can only be used between dimensions from the same part (correct me if i am wrong). i could create an interface on excel, with the equation there...
  12. sisau

    relation between entities

    hello, i don't know exactly how to explain the problem i have... but i'll try to do it. are there any way to mantain the relation between two entities? i mean, i can add the relation "equal" between two lines. however, if one line is (for instance) 4cm long and the other one is 6cm long... i...
  13. sisau

    it can seem a stupid thread... (related to names of sketches/features)

    my question seems stupid. but my problem lies in the way that SW gives names automatically to the sketches, features... if i draw a sketch it receives the name "sketch 1" (for example). if i erase it and i draw another sketch it receives the name "sketch 2". of course i know i can change the...
  14. sisau

    topology modification with parameters (solidowrks + visual basic)

    I need to modify the topology of a model that has to be parametric. This means that the number and the type of the geometry elements (topology) should be modifiable with parameters. These parameters have to be modifiable from a MSExcel interface. Any idea about how to do it?
  15. sisau

    topology modification with parameters (solidowrks + visual basic)

    Hello, I am trying to modify a solidworks assembly through Visual Basic. The process I follow consists on recording a macro in SW and then write it in Visual Basic, because I want to execute it pressing a command button in microsoft excel, but it appears some kind of error. I am a beginner...
  16. sisau

    flexible sub assemblies

    i have worked with different subassemblies and i have always different kind of problems depending on if they are rigid or flexible. instead of working with subassemblies, i work with only one assembly and i distribute the parts in different folders. i gess you know how to create the folders: in...
  17. sisau

    set part (visual basic - solidworks)

    thank you for your help. finally i solved it using the following code: Set swApp = CreateObject("SldWorks.Application") Set Part = swApp.ActiveDoc Part.Parameter("dimension1@Sketch1@Actuator1.1.Part").SystemValue = Excel.Range("C5") * 0.001...
  18. sisau

    set part (visual basic - solidworks)

    Thank you but I didn't find how to do it. I am a beginner using VB and I have no idea about how to use it. All I have done is copy/paste from internet, so if you could correct my code I would be really grateful.
  19. sisau

    set part (visual basic - solidworks)

    I am trying to edit a SW part using Microsoft Visual Basic. I just want to edit some dimensions. The code I am using is the following: Set swApp = CreateObject("SldWorks.Application") Set Part = swApp.ActiveDoc Set myDimension = Part.Parameter("dimension2@Sketch2") myDimension.SystemValue =...
Back
Top