Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Assembly Tiers CATIA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WZL-IQS-Public
Automated Assembly Sequence Planning
Assembly Tiers CATIA
Commits
1bf1c43e
Commit
1bf1c43e
authored
Sep 23, 2020
by
Mikhail Polikarpov
Browse files
Options
Downloads
Patches
Plain Diff
Removed unnecessary return to initial position in the main loop
parent
5715edc1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CatiaNetTest/AssemblyTiers3.vb
+4
-7
4 additions, 7 deletions
CatiaNetTest/AssemblyTiers3.vb
CatiaNetTest/obj/Debug/CatiaNetTest.vbprojAssemblyReference.cache
+0
-0
0 additions, 0 deletions
...Test/obj/Debug/CatiaNetTest.vbprojAssemblyReference.cache
with
4 additions
and
7 deletions
CatiaNetTest/AssemblyTiers3.vb
+
4
−
7
View file @
1bf1c43e
...
@@ -324,10 +324,10 @@ Public Class AssemblyTiers3
...
@@ -324,10 +324,10 @@ Public Class AssemblyTiers3
product1
=
cRelevantProducts
.
Item
(
int_i
)
product1
=
cRelevantProducts
.
Item
(
int_i
)
'Remember initial position P_i (initPos)
'Remember initial position P_i (initPos)
Dim
initPos
(
11
)
Dim
initPos
(
11
)
If
bInitPosRecorded
(
int_i
)
=
False
Then
Dim
oPosition1
As
Object
Dim
oPosition1
As
Object
oPosition1
=
product1
.
Position
oPosition1
=
product1
.
Position
oPosition1
.
GetComponents
(
initPos
)
oPosition1
.
GetComponents
(
initPos
)
If
bInitPosRecorded
(
int_i
)
=
False
Then
Dim
ip
As
Integer
Dim
ip
As
Integer
For
ip
=
0
To
11
For
ip
=
0
To
11
aInitPos
(
int_i
,
ip
)
=
initPos
(
ip
)
aInitPos
(
int_i
,
ip
)
=
initPos
(
ip
)
...
@@ -388,6 +388,7 @@ Public Class AssemblyTiers3
...
@@ -388,6 +388,7 @@ Public Class AssemblyTiers3
moveProduct
(
product1
,
int_j
,
True
)
moveProduct
(
product1
,
int_j
,
True
)
If
productReachedFinalPosition
(
product1
,
int_i
)
=
True
Then
If
productReachedFinalPosition
(
product1
,
int_i
)
=
True
Then
bDisassembled
(
int_i
)
=
True
bDisassembled
(
int_i
)
=
True
disassDir
(
int_i
,
int_j
)
=
1
Debug
.
Print
(
"Successful disassembly: ["
&
d1
.
Item
(
int_j
)
&
"]"
)
Debug
.
Print
(
"Successful disassembly: ["
&
d1
.
Item
(
int_j
)
&
"]"
)
End
If
End
If
If
collisionDetected
(
cClashes
,
group1
,
group2
)
=
True
Then
If
collisionDetected
(
cClashes
,
group1
,
group2
)
=
True
Then
...
@@ -420,10 +421,6 @@ Public Class AssemblyTiers3
...
@@ -420,10 +421,6 @@ Public Class AssemblyTiers3
'as soon as secTier is not the direct higher tier, no reason to move further
'as soon as secTier is not the direct higher tier, no reason to move further
If
secTier
<
intTier
-
1
Or
(
intTier
=
1
And
secTier
=
0
)
Then
If
secTier
<
intTier
-
1
Or
(
intTier
=
1
And
secTier
=
0
)
Then
disassDir
(
int_i
,
int_j
)
=
0
disassDir
(
int_i
,
int_j
)
=
0
'move product to initial position
Dim
oPosition3
As
Object
oPosition3
=
product1
.
Position
oPosition3
.
SetComponents
(
initPos
)
Exit
While
Exit
While
End
If
End
If
'if the disassembly tier is 1 lower (attention: tiers get reversed in the end to the assembly tiers!)
'if the disassembly tier is 1 lower (attention: tiers get reversed in the end to the assembly tiers!)
...
...
This diff is collapsed.
Click to expand it.
CatiaNetTest/obj/Debug/CatiaNetTest.vbprojAssemblyReference.cache
+
0
−
0
View file @
1bf1c43e
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment