- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!!
I have a structure with multiple simple cases. Each simple case has multiple load records of various types.
I am trying to create a new load record in existing simple cases but I want to use the freenum method to generate that load record and get its number.
So far I have this code:
Dim SimpleCase As RobotSimpleCase
Dim caseNum As Integer
caseNum = Cells(10, 2)
Set SimpleCase = robapp.Project.Structure.Cases.Get(caseNum)
SimpleCase.Records.New I_LRT_BAR_UNIFORM
Dim recordNum As Integer
recordNum = SimpleCase.Records.Count
Dim LoadRecord As RobotLoadRecord
Set LoadRecord = SimpleCase.Records.Get(recordNum)
But it is missing the FreeNumber method..
My idea is that with the FreeNumber method I can get the right load record, otherwise I dont know if I get it..
Can some help please?
Many thanks in advance!!! 🙂
Solved! Go to Solution.