Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Pokemon

Verified Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Pokemon's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Youre assumption is correct! Im sorry if this wasnt clear. Im working on this problem for over half a year... It would be great if you could continue to help me
  2. Is here absolutly nobody who can help me out with this problem?
  3. Lets imagine Ive created a pyramid. Its basement is a rectangle (x=20, y=20) and its high is z=40. I am only working with one SolidItem. Ive tried sth like this: code: Dim SolidItem As SolidGeometry Dim SomeValue As Integer = 100 Dim High as Integer = 0 For SolidItem In FoundSolidGeometry Do If SolidItem.BasePoint.x < SomeValue Then SomeValue = SolidItem.BasePoint.x End If High += 10 Loop Until High = 40 Next Now what I hope to get would be at least x = 0. But in the steps when the variable high gets higher I expect to get this (just an example!): High.....SomeValue ------------------- 0...........20 10..........15 20..........10 30...........5 40...........0 (Sorry! Dont know how to add spaces...) But this doesnt work Is the BasePoint member variable maybe the wrong variable to work here with?
  4. Hey Mike! Your Script works great! Thank you!!!
  5. Im still confused about how to realize this but I have at least an idea. Lets make the problem easier: I have created a Solid. Still I need the coordinates of it. But now I only need the greatest and the smallest x/y coordinates. The first step is "copied" out of the NetHookExampleVB8 - supportsearchManager file: code: Dim SolidMask as GeometryMask = New GeometryMask(False) SolidMask.Solids = True Dim FoundSolidGeometry() as Geometry = searchmanager.GetGeometry(SolidMask) But im not sure which kind of information are saved in FoundSolidGeometry. Instead of "GetGeometry" Ive tried "GetSolidGeometry", too, but still I dont know where to find the information im looking for.
  6. Hey Mike, It would be really great if you could do this! Iva tried myself but still I cant figure it out how do script this by myself... At the moment I am doing this part by recreating each level new... its not really useful because you always create a new file. Having the original idea would be real nice!
  7. Hey Mike, The very first step of my program is the "transformation" of a 3D object in Mastercam to several 2D levels by hitting a button... Ive posted this before in this forum and im still trying to realize it! In my example now there would be 5 of these levels. And now you have to imagine that I was thinking of making these levels invisible except of one particular one by using a ComboBox, e.g. after hitting the button these levels would be created and my ComboBox would display sth like "Level 1" which means that only my first level would be visible. I thought that seperating these two codes would be the better choice.
  8. code: Do LevelsManager.SetLevelName(i+1, "") LevelsManager.SetLevelVisible(i+1, False) ... i += 1 Loop While i < 5 If LevelBox.Items.contains("Level 1") Then For x = 1 To 5 LevelsManager.SetLevelVisible(x, False) Next x LevelsManager.SetLevelVisible(1, True) Next
  9. Ive typed following script: code: Do LevelsManager.SetLevelName(i+1, "") LevelsManager.SetLevelVisible(i+1, False) ... i += 1 Loop While i < 5 With VB Design Ive made a ComboBox to select these 5 Levels "seperatly". code: If LevelBox.Items.contains("Level 1") Then For x = 1 To 5 LevelsManager.SetLevelVisible(x, False) Next x LevelsManager.SetLevelVisible(1, True) Next Of course instead of "if-Next" there will be a Case-script for all 5 Levels. But I dont know why this doesnt work. Has anybody used the LevelsManager before?
  10. Ive typed following script: code: Do LevelsManager.SetLevelName(i+1, "") LevelsManager.SetLevelVisible(i+1, False) ... i += 1 Loop While i < 5 With VB Design Ive made a ComboBox to select these 5 Levels "seperatly". code: If LevelBox.Items.contains("Level 1") Then For x = 1 To 5 LevelsManager.SetLevelVisible(x, False) Next x LevelsManager.SetLevelVisible(1, True) Next Of course instead of "if-Next" there will be a Case-script for all 5 Levels. But I dont know why this doesnt work. Has anybody used the LevelsManager before?
  11. Thank you Mick!!! Your script works perfectly well!
  12. Hey Mike! Thank You for your help. First you are right, my lines are supposed to be "collections". I tried your solution but Visual Studio 2005 says that LineGeometry is a "type and canot be used as an expression". Further it says that currentLine is not declared. I was thinking about how to solve the 2nd problem but im not sure how to declare... I have tried some possibilities but nothing works, yet
  13. I have typed following code: code: while n < z Line(n) = New LineGeometry(Endpoint(0+x), Endpoint(0+2*x)) x += 1 n += 1 End while The result is sth like: Line(1) = New LineGeometry(Endpoint(1), Endpoint(2)) I tried to commit these array based Line like this: code: while m < a Line(m).commit m += 1 End while But all I get is an error message: Commit has a return type that is not supported or parameter types that are not supported. Does anybody know how I can solve this problem?
  14. The problem i face at the moment is that i have to "cut" a 3-dimensional model into several pieces and than display these levels as a 2-dimensional graphic. It would be enough get the highest/lowest x/y-coordinates for contructing a nice 2D-rectangle. My idea was to set a constant for the z-value steps (e.g. 20mm means that the program has to make the first operation at: z=20 and the next at z=40 etc.) and to get the x/y- coordinates for each z-value. It is in fact pretty easy but i havent made i myself by now because i simply lack of knowledge of how to do it in Mastercam X2... And i havent found something similar in this forum, either.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...